Name
NullCipher
Synopsis
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(); }
Get JXTA in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.