Package org.zkoss.zkex.license
Class DefaultKeyStoreParam
java.lang.Object
org.zkoss.zkex.license.AbstractKeyStoreParam
org.zkoss.zkex.license.DefaultKeyStoreParam
- All Implemented Interfaces:
KeyStoreParam
This is a convenience class implementing the
KeyStoreParam interface.- Version:
- $Id$
- Author:
- Christian Schlichtherle
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.zkoss.zkex.license.AbstractKeyStoreParam
equals, getStream, hashCode
-
Constructor Details
-
DefaultKeyStoreParam
public DefaultKeyStoreParam(Class clazz, String resource, String alias, String storePwd, String keyPwd) Creates a new instance of AbstractKeyStoreParam.- Parameters:
clazz- Used to retrieve the classloader required to load the keystore as a resource.resource- The resource identifier for the keystore to be returned byAbstractKeyStoreParam.getStream().alias- The alias for the key entry in the key store to be returned bygetAlias().storePwd- The key store password to be returned bygetStorePwd().keyPwd- The password for the private key in the key store entry to be returned bygetStorePwd().
-
-
Method Details
-
getAlias
Description copied from interface:KeyStoreParamReturns the alias for the key entry in the key store -nullis never returned. -
getStorePwd
Description copied from interface:KeyStoreParamReturns the password for the keystore -nullis never returned.Note that the
Policyclass provides additional constraints for the returned password.- See Also:
-
getKeyPwd
Description copied from interface:KeyStoreParamReturns 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:
-