Class AESGCMNoPadding
java.lang.Object
org.codehaus.plexus.components.secdispatcher.internal.cipher.AESGCMNoPadding
- All Implemented Interfaces:
Cipher
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
CIPHER_ALG
- See Also:
-
-
Constructor Details
-
AESGCMNoPadding
public AESGCMNoPadding()
-
-
Method Details
-
encrypt
Description copied from interface:Cipher
Encrypts the clear text data with password and returns result. No argument is allowed to benull
.- Specified by:
encrypt
in interfaceCipher
- Throws:
CipherException
- if encryption failed (is unexpected to happen, as it would mean that Java Runtime lacks some Crypto elements).
-
decrypt
Description copied from interface:Cipher
Decrypts the encrypted text with password and returns clear text result. No argument is allowed to benull
.- Specified by:
decrypt
in interfaceCipher
- Throws:
CipherException
- if decryption failed. It may happen as withCipher.encrypt(String, String)
due Java Runtime lacking some Crypto elements (less likely). Most likely decrypt will fail due wrong provided password or maybe corrupted encrypted text.
-