com.pcbsys.nirvana.client.nMessageSigner Interface Reference

This interface contains the generic functionaility that all message signers need to implement. More...

Inheritance diagram for com.pcbsys.nirvana.client.nMessageSigner:

com.pcbsys.nirvana.client.nCertificateSigner com.pcbsys.nirvana.client.nPassphraseSigner

Public Member Functions

java.security.Provider getProvider ()
 This method returns the security provider that is being used for the signing.
byte[] sign () throws Exception
 Get the default algorithm that will be used if no algorithm is supplied.
void update (byte[] data) throws Exception
 Updates the signature with the byte[] data passed.

Detailed Description

This interface contains the generic functionaility that all message signers need to implement.

Member Function Documentation

java.security.Provider com.pcbsys.nirvana.client.nMessageSigner.getProvider (  ) 

This method returns the security provider that is being used for the signing.

Returns:
java.security.Provider object

Implemented in com.pcbsys.nirvana.client.nCertificateSigner, and com.pcbsys.nirvana.client.nPassphraseSigner.

byte [] com.pcbsys.nirvana.client.nMessageSigner.sign (  )  throws Exception

Get the default algorithm that will be used if no algorithm is supplied.

Returns:
byte[] signature of the the current data
Exceptions:
Exception Specific to the actual signing implementation

Implemented in com.pcbsys.nirvana.client.nCertificateSigner, and com.pcbsys.nirvana.client.nPassphraseSigner.

void com.pcbsys.nirvana.client.nMessageSigner.update ( byte[]  data  )  throws Exception

Updates the signature with the byte[] data passed.

Parameters:
data Data to add to the signature
Exceptions:
Exception Specific to the actual signing implementation

Implemented in com.pcbsys.nirvana.client.nCertificateSigner, and com.pcbsys.nirvana.client.nPassphraseSigner.