de.smartics.properties.api.core.security
Interface PropertyValueSecurity

Package class diagram package PropertyValueSecurity
All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractEsapiPropertyValueSecurity, AbstractPropertyValueSecurity, Base64PropertyValueSecurity, EsapiPropertyValueSecurity, PropertiesBasedPropertyValueSecurity, SystemPropertyBasedPropertyValueSecurity

public interface PropertyValueSecurity
     
     
extends Serializable

Helper to en- and decrypt property values.


Method Summary
 String decrypt(PropertyDescriptor descriptor, String encryptedValue)
          Decrypts the given property value.
 String encrypt(PropertyDescriptor descriptor, String plainValue)
          Encrypts the given property value.
 

Method Detail

decrypt

String decrypt(PropertyDescriptor descriptor,
               String encryptedValue)
               throws NullPointerException,
                      SecurityException
Decrypts the given property value.

Parameters:
descriptor - the descriptor of the property.
encryptedValue - the encrypted value of the property to be decrypted.
Returns:
the decrypted value.
Throws:
NullPointerException - may be thrown if descriptor is null.
SecurityException - if the value cannot be decrypted.

encrypt

String encrypt(PropertyDescriptor descriptor,
               String plainValue)
               throws NullPointerException,
                      SecurityException
Encrypts the given property value.

Parameters:
descriptor - the descriptor of the property.
plainValue - the plain value of the property to be encrypted.
Returns:
the encrypted value.
Throws:
NullPointerException - may be thrown if descriptor is null.
SecurityException - if the value cannot be encrypted.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.