Package org.openiam.util.encrypt
Class AESCryptor
- java.lang.Object
-
- org.openiam.util.encrypt.AbstractCryptor
-
- org.openiam.util.encrypt.AESCryptor
-
- All Implemented Interfaces:
Cryptor
@Component("AESCryptor") public class AESCryptor extends AbstractCryptor
AESCryptor provides access to an implementation of the AES encryption algorithm.- Author:
- Suneet Shah
-
-
Field Summary
-
Fields inherited from class org.openiam.util.encrypt.AbstractCryptor
log
-
-
Constructor Summary
Constructors Constructor Description AESCryptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
decodeToByte(byte[] key, byte[] inputs)
String
decrypt(byte[] key, String value)
String
encrypt(byte[] key, String textValue)
byte[]
encryptToByte(byte[] key, byte[] input)
-
Methods inherited from class org.openiam.util.encrypt.AbstractCryptor
decode, decode, encode, encodeToBytes
-
-
-
-
Method Detail
-
decrypt
public String decrypt(byte[] key, String value) throws EncryptionException
- Throws:
EncryptionException
-
encrypt
public String encrypt(byte[] key, String textValue) throws EncryptionException
- Throws:
EncryptionException
-
encryptToByte
public byte[] encryptToByte(byte[] key, byte[] input) throws EncryptionException
- Throws:
EncryptionException
-
decodeToByte
public byte[] decodeToByte(byte[] key, byte[] inputs) throws EncryptionException
- Throws:
EncryptionException
-
-