- com
- pcbsys
- nirvana
- client
- nMessageValidator
This interface defines the generic functionaility that all Message Validators need to implement. More...
Public Member Functions | |
Object | check (byte[] original) throws Exception |
Compares the signature passed as a byte[] with the signature constructed with the update methods. More... | |
java.security.Provider | getProvider () |
This method returns the security provider that is being used for the validating. More... | |
void | start (byte[] signature) |
This method is called on the validating class prior to any calls being made. More... | |
void | stop () |
This method is called when the validation is completed. | |
void | update (byte[] data) throws Exception |
This method adds the byte[] to the signature being built up to validate against. More... | |
This interface defines the generic functionaility that all Message Validators need to implement.
Object com.pcbsys.nirvana.client.nMessageValidator.check | ( | byte[] | original | ) | throws Exception |
Compares the signature passed as a byte[] with the signature constructed with the update methods.
This method must throw an exception if the signatures do not match and must not just return null. As a null is still a valid return object.
original | Signature byte[] |
Exception | Must be thrown if the signature do not match |
Implemented in com.pcbsys.nirvana.client.nCertificateValidator, and com.pcbsys.nirvana.client.nPassphraseValidator.
java.security.Provider com.pcbsys.nirvana.client.nMessageValidator.getProvider | ( | ) |
This method returns the security provider that is being used for the validating.
Implemented in com.pcbsys.nirvana.client.nCertificateValidator, and com.pcbsys.nirvana.client.nPassphraseValidator.
void com.pcbsys.nirvana.client.nMessageValidator.start | ( | byte[] | signature | ) |
This method is called on the validating class prior to any calls being made.
It is not madatory that the implementing class do anything with the function.
signature | The signature to be validated |
Implemented in com.pcbsys.nirvana.client.nCertificateValidator, and com.pcbsys.nirvana.client.nPassphraseValidator.
void com.pcbsys.nirvana.client.nMessageValidator.update | ( | byte[] | data | ) | throws Exception |
This method adds the byte[] to the signature being built up to validate against.
data | byte[] to add to the signature |
Exception | Specific to the actual signing implementation |
Implemented in com.pcbsys.nirvana.client.nCertificateValidator, and com.pcbsys.nirvana.client.nPassphraseValidator.