Class Encryptor
- java.lang.Object
-
- org.apache.syncope.core.spring.security.Encryptor
-
public final class Encryptor extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdecode(String encoded, CipherAlgorithm cipherAlgorithm)Stringencode(String value, CipherAlgorithm cipherAlgorithm)static EncryptorgetInstance()static EncryptorgetInstance(String secretKey)booleanverify(String value, CipherAlgorithm cipherAlgorithm, String encoded)
-
-
-
Method Detail
-
getInstance
public static Encryptor getInstance()
-
encode
public String encode(String value, CipherAlgorithm cipherAlgorithm) throws UnsupportedEncodingException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException
-
verify
public boolean verify(String value, CipherAlgorithm cipherAlgorithm, String encoded)
-
decode
public String decode(String encoded, CipherAlgorithm cipherAlgorithm) throws UnsupportedEncodingException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException
-
-