September 2002
Intermediate to advanced
416 pages
14h 46m
English
NullSignature
This class provides a dummy implementation
of the signature interface; instances of this class are returned by
the JxtaCryptoSuite object when that suite is
constructed without an appropriate signature profile. This class is
not commonly used by the JXTA programmer.
public class NullSignature implements jxta.security.signature.Signature { // Public Constructors public NullSignature(); // Methods Implementing Signature public byte getAlgorithm(); // constant default:0 public String getAlgorithmName(); // default:"NullSignature” public void init(byte theMode) throws jxta.security.exceptions.CryptoException; public byte[ ] sign(byte[ ] inbuff, int offset, int inLength) throws jxta.security.exceptions.CryptoException; public void update(byte[ ] inbuf, int offset, int length) throws jxta.security.exceptions.CryptoException; public boolean verify(byte[ ] inBuff, int inOffset, int inLength, byte[ ] sigBuff, int sigOffset, int sigLength throws jxta.security.exceptions.CryptoException; // Methods Implementing Description public void clearDebug(); public void setDebug(); }
Read now
Unlock full access