de.smartics.properties.security.esapi
Class AbstractEsapiPropertyValueSecurity
java.lang.Object
de.smartics.properties.security.esapi.AbstractEsapiPropertyValueSecurity
-
All Implemented Interfaces:
-
de.smartics.properties.api.core.security.PropertyValueSecurity,
Serializable
-
Direct Known Subclasses:
-
EsapiPropertyValueSecurity
-
public abstract class AbstractEsapiPropertyValueSecurity
-
extends
Object
-
implements de.smartics.properties.api.core.security.PropertyValueSecurity
Base implementation based on OWASP ESAPI.
-
See Also:
-
Serialized Form
Method Summary |
String |
decrypt(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor, String encryptedValue) |
String |
encrypt(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor, String plainValue) |
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 |
AbstractEsapiPropertyValueSecurity
public AbstractEsapiPropertyValueSecurity()
-
Default constructor.
decrypt
public String decrypt(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor,
String encryptedValue)
throws de.smartics.properties.api.core.security.SecurityException
-
-
Specified by:
-
decrypt
in interface
de.smartics.properties.api.core.security.PropertyValueSecurity
-
-
Throws:
-
de.smartics.properties.api.core.security.SecurityException
provideEncryptor
protected abstract org.owasp.esapi.Encryptor provideEncryptor()
throws org.owasp.esapi.errors.EncryptionException
-
Provides the encryptor to use for encryption.
-
-
-
Returns:
-
the encryptor to use for encryption.
-
Throws:
-
org.owasp.esapi.errors.EncryptionException
- on any encryption problem.
encrypt
public String encrypt(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor,
String plainValue)
throws de.smartics.properties.api.core.security.SecurityException
-
-
Specified by:
-
encrypt
in interface
de.smartics.properties.api.core.security.PropertyValueSecurity
-
-
Throws:
-
de.smartics.properties.api.core.security.SecurityException
Copyright © 2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.