Package lu.kbra.p4j.crypto
Class EncryptionManager
java.lang.Object
lu.kbra.p4j.crypto.EncryptionManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final EncryptionManageraes(byte[] key) static final EncryptionManagerraw()voidsetDecryptor(Decryptor decryptor) voidsetEncryptor(Encryptor encryptor)
-
Constructor Details
-
EncryptionManager
-
-
Method Details
-
aes
public static final EncryptionManager aes(byte[] key) throws InvalidKeyException, NoSuchPaddingException -
raw
-
decrypt
- Throws:
Exception
-
encrypt
- Throws:
Exception
-
getDecryptor
-
getEncryptor
-
setDecryptor
-
setEncryptor
-