Package io.token.security.cipher.aes
Class AesDecrypter
- java.lang.Object
-
- io.token.security.cipher.aes.AesDecrypter
-
-
Constructor Summary
Constructors Constructor Description AesDecrypter(java.lang.String algorithm, javax.crypto.SecretKey decryptionKey)
Creates a decrypter for the specified key using default encryption algorithms.AesDecrypter(javax.crypto.SecretKey decryptionKey)
Creates a decrypter for the specified key using default encryption algorithms.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
decrypt(java.lang.String ciphertext)
Decrypts the specified ciphertext.
-
-
-
Constructor Detail
-
AesDecrypter
public AesDecrypter(javax.crypto.SecretKey decryptionKey)
Creates a decrypter for the specified key using default encryption algorithms.- Parameters:
decryptionKey
- the private key used for decryption
-
AesDecrypter
public AesDecrypter(java.lang.String algorithm, javax.crypto.SecretKey decryptionKey)
Creates a decrypter for the specified key using default encryption algorithms.- Parameters:
algorithm
- security algorithm to usedecryptionKey
- the private key used for decryption
-
-