Interface EncryptablePropertyDetector
-
- All Known Implementing Classes:
DefaultLazyPropertyDetector,DefaultPropertyDetector
public interface EncryptablePropertyDetectorInterface that provides the contract to detect an unwrap encrypted properties. For instance, if encrypted properties are to be prefixed with "ENC(" and suffixed with ")" then the implementation ofisEncrypted(String)would return true when a property effectively enclosed in such prefix/suffix andunwrapEncryptedValue(String)would return the encrypted value, the portion of the property without the prefix and suffix.- Version:
- $Id: $Id
- Author:
- Ulises Bocchio
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisEncrypted(String property)Returns whether a property is encrypted or not.StringunwrapEncryptedValue(String property)Returns the portion of the property that is actually the encrypted value without any extra metadata such as prefixes and suffixes.
-
-
-
Method Detail
-
isEncrypted
boolean isEncrypted(String property)
Returns whether a property is encrypted or not. Usually based on prefixes and suffixes.- Parameters:
property- the property value to check whether is encrypted or not.- Returns:
- true if the property is encrypted.
-
unwrapEncryptedValue
String unwrapEncryptedValue(String property)
Returns the portion of the property that is actually the encrypted value without any extra metadata such as prefixes and suffixes.- Parameters:
property- the property value to extract the encrypted value.- Returns:
- the encrypted portion of the property value.
-
-