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 the KeyStoreParam interface.
Version:
$Id$
Author:
Christian Schlichtherle
  • 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 by AbstractKeyStoreParam.getStream().
      alias - The alias for the key entry in the key store to be returned by getAlias().
      storePwd - The key store password to be returned by getStorePwd().
      keyPwd - The password for the private key in the key store entry to be returned by getStorePwd().
  • Method Details

    • getAlias

      public String getAlias()
      Description copied from interface: KeyStoreParam
      Returns the alias for the key entry in the key store - null is never returned.
    • getStorePwd

      public String getStorePwd()
      Description copied from interface: KeyStoreParam
      Returns the password for the keystore - null is never returned.

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

      See Also:
    • getKeyPwd

      public String getKeyPwd()
      Description copied from interface: KeyStoreParam
      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.

      See Also: