NullCipher (Java SE 15 & JDK 15) (original) (raw)
public class NullCipher extends Cipher
The NullCipher class is a class that provides an "identity cipher" -- one that does not transform the plain text. As a consequence, the ciphertext is identical to the plaintext. All initialization methods do nothing, while the blocksize is set to 1 byte.
Since:
1.4
Field Summary
Constructor Summary
Constructors
Constructor | Description |
---|---|
NullCipher() | Creates a NullCipher object. |
Method Summary
Methods declared in class javax.crypto.Cipher
[doFinal](Cipher.html#doFinal%28%29), [doFinal](Cipher.html#doFinal%28byte%5B%5D%29), [doFinal](Cipher.html#doFinal%28byte%5B%5D,int%29), [doFinal](Cipher.html#doFinal%28byte%5B%5D,int,int%29), [doFinal](Cipher.html#doFinal%28byte%5B%5D,int,int,byte%5B%5D%29), [doFinal](Cipher.html#doFinal%28byte%5B%5D,int,int,byte%5B%5D,int%29), [doFinal](Cipher.html#doFinal%28java.nio.ByteBuffer,java.nio.ByteBuffer%29), [getAlgorithm](Cipher.html#getAlgorithm%28%29), [getBlockSize](Cipher.html#getBlockSize%28%29), [getExemptionMechanism](Cipher.html#getExemptionMechanism%28%29), [getInstance](Cipher.html#getInstance%28java.lang.String%29), [getInstance](Cipher.html#getInstance%28java.lang.String,java.lang.String%29), [getInstance](Cipher.html#getInstance%28java.lang.String,java.security.Provider%29), [getIV](Cipher.html#getIV%28%29), [getMaxAllowedKeyLength](Cipher.html#getMaxAllowedKeyLength%28java.lang.String%29), [getMaxAllowedParameterSpec](Cipher.html#getMaxAllowedParameterSpec%28java.lang.String%29), [getOutputSize](Cipher.html#getOutputSize%28int%29), [getParameters](Cipher.html#getParameters%28%29), [getProvider](Cipher.html#getProvider%28%29), [init](Cipher.html#init%28int,java.security.cert.Certificate%29), [init](Cipher.html#init%28int,java.security.cert.Certificate,java.security.SecureRandom%29), [init](Cipher.html#init%28int,java.security.Key%29), [init](Cipher.html#init%28int,java.security.Key,java.security.AlgorithmParameters%29), [init](Cipher.html#init%28int,java.security.Key,java.security.AlgorithmParameters,java.security.SecureRandom%29), [init](Cipher.html#init%28int,java.security.Key,java.security.SecureRandom%29), [init](Cipher.html#init%28int,java.security.Key,java.security.spec.AlgorithmParameterSpec%29), [init](Cipher.html#init%28int,java.security.Key,java.security.spec.AlgorithmParameterSpec,java.security.SecureRandom%29), [toString](Cipher.html#toString%28%29), [unwrap](Cipher.html#unwrap%28byte%5B%5D,java.lang.String,int%29), [update](Cipher.html#update%28byte%5B%5D%29), [update](Cipher.html#update%28byte%5B%5D,int,int%29), [update](Cipher.html#update%28byte%5B%5D,int,int,byte%5B%5D%29), [update](Cipher.html#update%28byte%5B%5D,int,int,byte%5B%5D,int%29), [update](Cipher.html#update%28java.nio.ByteBuffer,java.nio.ByteBuffer%29), [updateAAD](Cipher.html#updateAAD%28byte%5B%5D%29), [updateAAD](Cipher.html#updateAAD%28byte%5B%5D,int,int%29), [updateAAD](Cipher.html#updateAAD%28java.nio.ByteBuffer%29), [wrap](Cipher.html#wrap%28java.security.Key%29)
Constructor Details
NullCipher
public NullCipher()
Creates a NullCipher object.