Package org.openiam.util.encrypt
Interface Cryptor
-
- All Known Implementing Classes:
AbstractCryptor,AESCryptor,DESedeCryptor,RijndaelCryptor
public interface CryptorHighlevel 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)Stringdecrypt(byte[] key, String input)Stringencrypt(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
-
-