Class DefaultCipherParam

  • All Implemented Interfaces:
    CipherParam

    public class DefaultCipherParam
    extends java.lang.Object
    implements CipherParam
    This is a convenience class implementing the CipherParam interface.
    Version:
    $Id$
    Author:
    Christian Schlichtherle
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultCipherParam​(java.lang.String keyPwd)
      Creates a new instance of DefaultCipherParam using the given password to be returned by getKeyPwd().
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getKeyPwd()
      Returns the password used to generate a secret key for encryption/decryption of license keys
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultCipherParam

        public DefaultCipherParam​(java.lang.String keyPwd)
        Creates a new instance of DefaultCipherParam using the given password to be returned by getKeyPwd().
    • Method Detail

      • getKeyPwd

        public java.lang.String getKeyPwd()
        Description copied from interface: CipherParam
        Returns the password used to generate a secret key for encryption/decryption of license keys. - null is never returned.

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

        Specified by:
        getKeyPwd in interface CipherParam
        See Also:
        Policy.checkPwd(String)