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 String
decode(String encoded, CipherAlgorithm cipherAlgorithm)
String
encode(String value, CipherAlgorithm cipherAlgorithm)
static Encryptor
getInstance()
static Encryptor
getInstance(String secretKey)
boolean
verify(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
-
-