Name

NullSignature

Synopsis

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();  
}

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.