|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.rim.device.api.crypto.encoder.SignatureDecoder
|
+--net.rim.device.api.crypto.encoder.WTLS_SignatureDecoder
Implements the signature decoder for WTLS.
| Constructor Summary | ||
|
WTLS_SignatureDecoder()
Creates a new WTLS_SignatureDecoder object. |
|
| Method Summary | ||
|
protected DecodedSignature |
decodeSignature(byte[] encodedSignature,
String signatureAlgorithm,
String digestAlgorithm)
Decodes a signature. |
|
protected DecodedSignature |
decodeSignature(InputStream encodedSignature,
String signatureAlgorithm,
String digestAlgorithm)
Decodes the input stream. |
|
protected String |
getEncodingAlgorithm()
Returns the encoding algorithm used, such as "WTLS". |
|
protected String[] |
getSignatureAlgorithms()
Returns the signature algorithm used, such as "ECDSA", or "RSA". |
| Methods inherited from class net.rim.device.api.crypto.encoder.SignatureDecoder |
decode, decode, decode, decode, decode, getDecoder, register |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WTLS_SignatureDecoder()
WTLS_SignatureDecoder object.
This is the default constructor.
| Method Detail |
protected DecodedSignature decodeSignature(byte[] encodedSignature, String signatureAlgorithm, String digestAlgorithm) throws NoSuchAlgorithmException, InvalidSignatureEncodingException
The function a subclass would implement to finish decoding the key.
encodedSignature - A byte array containing the encoded signature.signatureAlgorithm - A String representing the algorithm.NoSuchAlgorithmException - Thrown if the specified algorithm cannot
be found.InvalidSignatureEncodingException - Thrown if the signature is
formatted incorrectly.protected DecodedSignature decodeSignature(InputStream encodedSignature, String signatureAlgorithm, String digestAlgorithm) throws NoSuchAlgorithmException, InvalidSignatureEncodingException
SignatureDecoderdecodeSignature in class SignatureDecoder
SignatureDecoderencodedSignature - An input stream containing the encoding.signatureAlgorithm - The signature algorithm used.DecodedSignature object from which a signature verifier can be obtained.NoSuchAlgorithmException - Thrown if the specified encoding algorithm cannot be found.InvalidSignatureEncodingException - Thrown if the signature is incorrectly formatted.protected String getEncodingAlgorithm()
getEncodingAlgorithm in class SignatureDecoder
SignatureDecoderprotected String[] getSignatureAlgorithms()
getSignatureAlgorithms in class SignatureDecoder
SignatureDecoder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.