Package org.zkoss.zkex.license
Interface KeyStoreParam
-
- All Known Implementing Classes:
AbstractKeyStoreParam,DefaultKeyStoreParam
public interface KeyStoreParamConfigures access parameters for aKeyStorewhich holds the private and public keys to sign and verify aGenericCertificateby theLicenseNotary. 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, Christian Schlichtherle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetAlias()Returns the alias for the key entry in the key store -nullis never returned.java.lang.StringgetKeyPwd()Returns the password for the private key in the keystore.java.lang.StringgetStorePwd()Returns the password for the keystore -nullis never returned.java.io.InputStreamgetStream()Returns the keystore as an input stream -nullis never returned.
-
-
-
Method Detail
-
getStream
java.io.InputStream getStream() throws java.io.IOExceptionReturns the keystore as an input stream -nullis never returned.- Throws:
java.io.IOException- If the key store cannot get opened.
-
getAlias
java.lang.String getAlias()
Returns the alias for the key entry in the key store -nullis never returned.
-
getStorePwd
java.lang.String getStorePwd()
Returns the password for the keystore -nullis never returned.Note that the
Policyclass provides additional constraints for the returned password.- See Also:
Policy.checkPwd(String)
-
getKeyPwd
java.lang.String getKeyPwd()
Returns the password for the private key in the keystore. This password is only required to sign aGenericCertificateand must benullin your client application (the one which just needs to install or verify license certificates rather than creating them). TheLicenseNotaryclass may check that there is no private key in the Java key store if this password isnulland vice versa and throw an exception if you don't adhere to this contract.Note that the
Policyclass provides additional constraints for the returned password.- See Also:
Policy.checkPwd(String)
-
-