TrueLicense Core 1.33

de.schlichtherle.license
Class DefaultCipherParam

java.lang.Object
  extended by de.schlichtherle.license.DefaultCipherParam
All Implemented Interfaces:
CipherParam

public class DefaultCipherParam
extends Object
implements CipherParam

This is a convenience class implementing the CipherParam interface.

Author:
Christian Schlichtherle

Field Summary
private  String keyPwd
           
 
Constructor Summary
DefaultCipherParam(String keyPwd)
          Creates a new instance of DefaultCipherParam using the given password to be returned by getKeyPwd().
 
Method Summary
 String getKeyPwd()
          Returns the password used to generate a secret key for the encryption/decryption of license keys
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyPwd

private final String keyPwd
Constructor Detail

DefaultCipherParam

public DefaultCipherParam(String keyPwd)
Creates a new instance of DefaultCipherParam using the given password to be returned by getKeyPwd().

Method Detail

getKeyPwd

public String getKeyPwd()
Description copied from interface: CipherParam
Returns the password used to generate a secret key for the 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
Returns:
The password used to generate a secret key for the encryption/decryption of license keys.
See Also:
Policy.checkPwd(String)

TrueLicense Core 1.33

Copyright © 2005-2015 Schlichtherle IT Services. All Rights Reserved.