Class DefaultKeyStoreParam

    • 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.String getAlias()
      Returns the alias for the key entry in the key store - null is never returned.
      java.lang.String getKeyPwd()
      Returns the password for the private key in the keystore.
      java.lang.String getStorePwd()
      Returns the password for the keystore - null is never returned.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • 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 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 Detail

      • getAlias

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

        public java.lang.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:
        Policy.checkPwd(String)
      • getKeyPwd

        public java.lang.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:
        Policy.checkPwd(String)