|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.api.core.security.Base64PropertyValueSecurity
public final class Base64PropertyValueSecurity
Not a security implementation, but one that obscures plain values by using a reversible Base64 encoding.
This implementation allows a descriptor of null
.
Constructor Summary | |
---|---|
Base64PropertyValueSecurity() Default constructor. |
Method Summary | |
---|---|
String |
decrypt(PropertyDescriptor descriptor, String encryptedValue) Decrypts the given property value. |
String |
encrypt(PropertyDescriptor descriptor, String plainValue) Encrypts the given property value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base64PropertyValueSecurity()
Method Detail |
---|
public String decrypt(PropertyDescriptor descriptor, String encryptedValue)
PropertyValueSecurity
decrypt
in interface
PropertyValueSecurity
descriptor
- the descriptor of the property.
encryptedValue
- the encrypted value of the property to be decrypted.
public String encrypt(PropertyDescriptor descriptor, String plainValue)
PropertyValueSecurity
encrypt
in interface
PropertyValueSecurity
descriptor
- the descriptor of the property.
plainValue
- the plain value of the property to be encrypted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |