com.pcbsys.nirvana.client.nMessageSigner Interface Reference

This interface contains the generic functionality 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. More...
 
byte[] sign () throws Exception
 Get the default algorithm that will be used if no algorithm is supplied. More...
 
void update (byte[] data) throws Exception
 Updates the signature with the byte[] data passed. More...
 

Detailed Description

This interface contains the generic functionality 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
ExceptionSpecific 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
dataData to add to the signature
Exceptions
ExceptionSpecific to the actual signing implementation

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