- All Implemented Interfaces:
Cipher
public final class NullCipher
extends Object
implements Cipher
Pass-through module when no encryption/decryption is desired.
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
NullCipher
public NullCipher()
-
Method Details
-
decrypt
Description copied from interface: Cipher
Decrypt a string.
- Specified by:
decrypt
in interface Cipher
- Parameters:
input
- the data to decrypt
- Returns:
- the decrypted data
-
encrypt
Description copied from interface: Cipher
Encrypt a string.
- Specified by:
encrypt
in interface Cipher
- Parameters:
input
- the data to encrypt
- Returns:
- the encrypted data