September 2002
Intermediate to advanced
416 pages
14h 46m
English
NullCipher
This class implements the
Cipher interface, but text that is passed to its
update( ) and doFinal( )
methods is unchanged; therefore, it can be used for testing.
Instances of this class are returned from the
JxtaCryptoSuite class when it is constructed and
the profile type does not include
JxtaCrypto.MEMBER_RC4. This class is not usually
used directly.
public final class NullCipher implements jxta.security.cipher.Cipher { // Public Constructors public NullCipher(); // Methods Implementing Cipher public int doFinal(byte[ ] inBuf, int inOff, int inLen, byte[ ] outBuf, int outOff) throws jxta.security.exceptions.CryptoException; // constant public byte getAlgorithm(); // constant default:0 public void init(jxta.security.cipher.Key theKey, byte theMode) throws jxta.security.exceptions.CryptoException; public void init(jxta.security.cipher.Key theKey, byte theMode, byte[ ] b, int off, int len) throws jxta.security.exceptions.CryptoException; public int update(byte[ ] inBuf, int inOff, int inLen, byte[ ] outBuf, int outOff) throws jxta.security.exceptions.CryptoException; // Methods Implementing Description public void clearDebug(); public String getAlgorithmName(); // default:"NullCipher” public void setDebug(); }
Read now
Unlock full access