public abstract class AbstractPasswordEncryption extends AbstractEncryption implements PasswordEncryption
ENCRYPTION_METHOD_END_CHAR, ENCRYPTION_METHOD_START_CHAR
Constructor and Description |
---|
AbstractPasswordEncryption(String encryptionMethod) |
Modifier and Type | Method and Description |
---|---|
boolean |
isSameKey(String password,
String inputValue)
Compares two string values to see if they are equal, no matter if the one or the other is encrypted.
|
encrypt, getEncryptedValue, getEncryptionMethod, isEncrypted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDecryptedValue, getEncryptedValue, getEncryptionMethod, isDecryptable, isEncrypted
public AbstractPasswordEncryption(String encryptionMethod)
public final boolean isSameKey(String password, String inputValue) throws PropertyException
PasswordEncryption
isSameKey
in interface PasswordEncryption
password
- the assumed password, which is stored in properties. This can either be encrypted or not encrypted.inputValue
- the user password. This can either be encrypted or not encrypted.true
if the two string values encrypted is the same, otherwise false
is returned, must be able to handle that "[method]" is a front the encrypted value.PropertyException
- if either password> or inputValue
is null
, or if password encrypted for this propertyType isnt possible.