Class DefaultEncryptor
java.lang.Object
org.apache.syncope.core.spring.security.DefaultEncryptor
- All Implemented Interfaces:
 Encryptor
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected final Map<CipherAlgorithm, org.jasypt.digest.StandardStringDigester> protected SecretKeySpecprotected static final Logger - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiondecode(String encoded, CipherAlgorithm cipherAlgorithm) encode(String value, CipherAlgorithm cipherAlgorithm) booleanverify(String value, CipherAlgorithm cipherAlgorithm, String encoded)  
- 
Field Details
- 
LOG
 - 
DEFAULT_SECRET_KEY
- See Also:
 
 - 
digesters
 - 
keySpec
 
 - 
 - 
Constructor Details
- 
DefaultEncryptor
 
 - 
 - 
Method Details
- 
encode
public String encode(String value, CipherAlgorithm cipherAlgorithm) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException - Specified by:
 encodein interfaceEncryptor- Throws:
 NoSuchAlgorithmExceptionNoSuchPaddingExceptionInvalidKeyExceptionIllegalBlockSizeExceptionBadPaddingException
 - 
verify
 - 
decode
public String decode(String encoded, CipherAlgorithm cipherAlgorithm) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException - Specified by:
 decodein interfaceEncryptor- Throws:
 NoSuchAlgorithmExceptionNoSuchPaddingExceptionInvalidKeyExceptionIllegalBlockSizeExceptionBadPaddingException
 
 -