public interface PasswordEncryption extends Encryption
ENCRYPTION_METHOD_END_CHAR, ENCRYPTION_METHOD_START_CHAR
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.
|
getDecryptedValue, getEncryptedValue, getEncryptionMethod, isDecryptable, isEncrypted
boolean isSameKey(String password, String inputValue) throws PropertyException
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.