APIdia Launch Partner
Top Description Fields Constructors Methods
javax.crypto

public Class NullCipher

extends Cipher
Class Inheritance

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. Unlike other ciphers, the NullCipher has no state, and will never throw an IllegalStateException when Cipher methods are called.
Author
Li Gong
Since
1.4

Field Summary

Inherited from javax.crypto.Cipher:
DECRYPT_MODEENCRYPT_MODEPRIVATE_KEYPUBLIC_KEYSECRET_KEYUNWRAP_MODEWRAP_MODE

Constructor Summary

AccessConstructor and Description
public
NullCipher()

Creates a NullCipher object.

Method Summary

Inherited from javax.crypto.Cipher:
chooseFirstProviderdoFinaldoFinaldoFinaldoFinaldoFinaldoFinaldoFinalgetAlgorithmgetBlockSizegetExemptionMechanismgetInstancegetInstancegetInstancegetIVgetMaxAllowedKeyLengthgetMaxAllowedParameterSpecgetOutputSizegetParametersgetProviderindexOfRealSlashinitinitinitinitinitinitinitinitreqNonEmptytoStringunwrapupdateupdateupdateupdateupdateupdateAADupdateAADupdateAADwrap

Constructor Detail

NullCipherback to summary
public NullCipher()

Creates a NullCipher object.