|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.security.esapi.AbstractEsapiPropertyValueSecurity
public abstract class AbstractEsapiPropertyValueSecurity
Base implementation based on OWASP ESAPI.
Constructor Summary | |
---|---|
AbstractEsapiPropertyValueSecurity() 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. |
protected abstract org.owasp.esapi.Encryptor |
provideEncryptor() Provides the encryptor to use for encryption. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractEsapiPropertyValueSecurity()
Method Detail |
---|
public String decrypt(PropertyDescriptor descriptor, String encryptedValue) throws SecurityException
PropertyValueSecurity
decrypt
in interface
PropertyValueSecurity
descriptor
- the descriptor of the property.
encryptedValue
- the encrypted value of the property to be decrypted.
SecurityException
- if the value cannot be decrypted.
protected abstract org.owasp.esapi.Encryptor provideEncryptor() throws org.owasp.esapi.errors.EncryptionException
org.owasp.esapi.errors.EncryptionException
- on any encryption problem.
public String encrypt(PropertyDescriptor descriptor, String plainValue) throws SecurityException
PropertyValueSecurity
encrypt
in interface
PropertyValueSecurity
descriptor
- the descriptor of the property.
plainValue
- the plain value of the property to be encrypted.
SecurityException
- if the value cannot be encrypted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |