Package org.openiam.util.encrypt
Class RijndaelCryptor
- java.lang.Object
-
- org.openiam.util.encrypt.RijndaelCryptor
-
-
Constructor Summary
Constructors Constructor Description RijndaelCryptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
decodeToByte(byte[] key, byte[] input)
String
decrypt(byte[] key, byte[] iv, String input)
String
decrypt(byte[] key, String input)
String
encrypt(byte[] key, byte[] iv, String input)
String
encrypt(byte[] key, String input)
byte[]
encryptToByte(byte[] key, byte[] input)
-
-
-
Method Detail
-
encrypt
public String encrypt(byte[] key, String input) throws EncryptionException
- Specified by:
encrypt
in interfaceCryptor
- Throws:
EncryptionException
-
encryptToByte
public byte[] encryptToByte(byte[] key, byte[] input) throws EncryptionException
- Specified by:
encryptToByte
in interfaceCryptor
- Throws:
EncryptionException
-
decodeToByte
public byte[] decodeToByte(byte[] key, byte[] input) throws EncryptionException
- Specified by:
decodeToByte
in interfaceCryptor
- Throws:
EncryptionException
-
encrypt
public String encrypt(byte[] key, byte[] iv, String input) throws EncryptionException
- Throws:
EncryptionException
-
decrypt
public String decrypt(byte[] key, String input) throws EncryptionException
- Specified by:
decrypt
in interfaceCryptor
- Throws:
EncryptionException
-
decrypt
public String decrypt(byte[] key, byte[] iv, String input) throws EncryptionException
- Throws:
EncryptionException
-
-