Class AESGCMNoPadding
java.lang.Object
org.codehaus.plexus.components.secdispatcher.internal.cipher.AESGCMNoPadding
- All Implemented Interfaces:
Cipher
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CIPHER_ALG
- See Also:
-
-
Constructor Details
-
AESGCMNoPadding
public AESGCMNoPadding()
-
-
Method Details
-
encrypt
Description copied from interface:CipherEncrypts the clear text data with password and returns result. No argument is allowed to benull.- Specified by:
encryptin 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:CipherDecrypts the encrypted text with password and returns clear text result. No argument is allowed to benull.- Specified by:
decryptin 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.
-