Package org.zkoss.zkex.license
Class DefaultKeyStoreParam
- java.lang.Object
-
- org.zkoss.zkex.license.AbstractKeyStoreParam
-
- org.zkoss.zkex.license.DefaultKeyStoreParam
-
- All Implemented Interfaces:
KeyStoreParam
public class DefaultKeyStoreParam extends AbstractKeyStoreParam
This is a convenience class implementing theKeyStoreParaminterface.- Version:
- $Id$
- Author:
- Christian Schlichtherle
-
-
Constructor Summary
Constructors Constructor Description DefaultKeyStoreParam(java.lang.Class clazz, java.lang.String resource, java.lang.String alias, java.lang.String storePwd, java.lang.String keyPwd)Creates a new instance of AbstractKeyStoreParam.
-
Method Summary
All Methods Instance Methods Concrete 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.-
Methods inherited from class org.zkoss.zkex.license.AbstractKeyStoreParam
equals, getStream, hashCode
-
-
-
-
Constructor Detail
-
DefaultKeyStoreParam
public DefaultKeyStoreParam(java.lang.Class clazz, java.lang.String resource, java.lang.String alias, java.lang.String storePwd, java.lang.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 Detail
-
getAlias
public java.lang.String getAlias()
Description copied from interface:KeyStoreParamReturns the alias for the key entry in the key store -nullis never returned.
-
getStorePwd
public java.lang.String 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:
Policy.checkPwd(String)
-
getKeyPwd
public java.lang.String 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:
Policy.checkPwd(String)
-
-