Glossary:
com.pcbsys.nirvana.client.nMessageValidator Interface Reference
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. | |
| java.security.Provider | getProvider () |
| This method returns the security provider that is being used for the validating. | |
| void | start (byte[] signature) |
| This method is called on the validating class prior to any calls being made. | |
| 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. | |
Detailed Description
This interface defines the generic functionaility that all Message Validators need to implement.Member Function Documentation
| 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.
- Parameters:
-
original Signature byte[]
- Returns:
- Object specific to the validating class that can be used for further validation
- Exceptions:
-
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.
- Returns:
- java.security.Provider object
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.
- Parameters:
-
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.
- Parameters:
-
data byte[] to add to the signature
- Exceptions:
-
Exception Specific to the actual signing implementation
Implemented in com.pcbsys.nirvana.client.nCertificateValidator, and com.pcbsys.nirvana.client.nPassphraseValidator.
