Class Encryptor
java.lang.Object
org.apache.syncope.core.spring.security.Encryptor
-
Method Summary
Modifier and TypeMethodDescriptiondecode
(String encoded, CipherAlgorithm cipherAlgorithm) encode
(String value, CipherAlgorithm cipherAlgorithm) static Encryptor
static Encryptor
getInstance
(String secretKey) boolean
verify
(String value, CipherAlgorithm cipherAlgorithm, String encoded)
-
Method Details
-
getInstance
-
getInstance
-
encode
public String encode(String value, CipherAlgorithm cipherAlgorithm) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException -
verify
-
decode
public String decode(String encoded, CipherAlgorithm cipherAlgorithm) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException
-