Package org.openiam.util.encrypt
Interface Cryptor
-
- All Known Implementing Classes:
AbstractCryptor
,AESCryptor
,DESedeCryptor
,RijndaelCryptor
public interface Cryptor
Highlevel Interface for all classes providing access to encryption algorithms.- Author:
- Suneet Shah
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
decodeToByte(byte[] key, byte[] input)
String
decrypt(byte[] key, String input)
String
encrypt(byte[] key, String input)
byte[]
encryptToByte(byte[] key, byte[] input)
-
-
-
Method Detail
-
encrypt
String encrypt(byte[] key, String input) throws EncryptionException
- Throws:
EncryptionException
-
encryptToByte
byte[] encryptToByte(byte[] key, byte[] input) throws EncryptionException
- Throws:
EncryptionException
-
decodeToByte
byte[] decodeToByte(byte[] key, byte[] input) throws EncryptionException
- Throws:
EncryptionException
-
decrypt
String decrypt(byte[] key, String input) throws EncryptionException
- Throws:
EncryptionException
-
-