TrueLicense Core 1.33

de.schlichtherle.license
Interface KeyStoreParam

All Known Implementing Classes:
AbstractKeyStoreParam, DefaultKeyStoreParam

public interface KeyStoreParam

Configures access parameters for a KeyStore which holds the private and public keys to sign and verify a GenericCertificate by the LicenseNotary. All methods in this class should return constant references when called multiple times because the return values might get cached.

Note: To protect your application against reverse engineering and thus reduce the risk to compromise the privacy of your passwords, it is highly recommended to obfuscate all JAR files which contain class files that implement this interface with a tool like e.g. ProGuard.

Author:
Christian Schlichtherle

Method Summary
 String getAlias()
          Returns the alias for the key entry in the key store.
 String getKeyPwd()
          Returns the password for the private key in the keystore.
 String getStorePwd()
          Returns the password for the keystore.
 InputStream getStream()
          Returns an input stream for reading the keystore.
 

Method Detail

getAlias

String getAlias()
Returns the alias for the key entry in the key store.

Returns:
The alias for the key entry in the key store - null is never returned.

getKeyPwd

String getKeyPwd()
Returns the password for the private key in the keystore. This password is only required to sign a GenericCertificate and must be null in your client application (the one which just needs to install or verify license certificates rather than creating them). The LicenseNotary class may check that there is no private key in the Java key store if this password is null and vice versa and throw an exception if you don't adhere to this contract.

Note that the Policy class provides additional constraints for the returned password.

Returns:
The password for the private key in the keystore.
See Also:
Policy.checkPwd(String)

getStorePwd

String getStorePwd()
Returns the password for the keystore.

Note that the Policy class provides additional constraints for the returned password.

Returns:
The password for the keystore - null is never returned.
See Also:
Policy.checkPwd(String)

getStream

InputStream getStream()
                      throws IOException
Returns an input stream for reading the keystore.

Returns:
An input stream for reading the keystore - null is never returned.
Throws:
IOException - If the key store cannot get opened.

TrueLicense Core 1.33

Copyright © 2005-2015 Schlichtherle IT Services. All Rights Reserved.