|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.crypto.NullSignatureVerifier
The NullSignatureVerifier class implements a trivial (ie no) verification algorithm. The
methods in this class do not perform any operations on the data.
NullSignatureSigner| Constructor Summary | ||
|
NullSignatureVerifier()
Creates a NullSignatureVerifier object.
|
|
|
NullSignatureVerifier(boolean verify)
Creates a NullSignatureVerifier object.
|
|
| Method Summary | ||
|
String |
getAlgorithm()
Returns the name of the signing algorithm used, ie "Null". |
|
void |
update(byte[] data)
Adds additional message data to the signature. |
|
void |
update(byte[] data,
int offset,
int length)
Adds additional message data to the signature. |
|
void |
update(int data)
Adds additional message data to the signature. |
|
boolean |
verify()
Returns true or false depending on which constructor was invoked. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NullSignatureVerifier()
NullSignatureVerifier object.
verify() will return false.
public NullSignatureVerifier(boolean verify)
NullSignatureVerifier object.
This constructor allows the application
to set the return value that they would
like to see from the verify() method.
The value passed into this constructor
will be returned in the verify() method.
verify - the boolean that will be
returned in the verify() method.| Method Detail |
public String getAlgorithm()
getAlgorithm in interface SignatureVerifiernet.rim.device.api.crypto.SignatureVerifierpublic void update(int data)
SignatureVerifierupdate in interface SignatureVerifierpublic void update(byte[] data)
SignatureVerifierupdate in interface SignatureVerifier
public void update(byte[] data,
int offset,
int length)
SignatureVerifierupdate in interface SignatureVerifierpublic boolean verify()
verify in interface SignatureVerifiernet.rim.device.api.crypto.SignatureVerifierCryptoTokenException - Thrown when a problem occurs with a crypto
token or the crypto token is invalid.CryptoUnsupportedOperationException - Thrown when a call is made to
an unsupported operation.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.