|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.crypto.encoder.PublicKeyDecoder
net.rim.device.api.crypto.encoder.X509_PublicKeyDecoder
public class X509_PublicKeyDecoder
Implements the public key decoder for X509.
| Constructor Summary | ||
|---|---|---|
|
X509_PublicKeyDecoder()
Creates a new X509_PublicKeyDecoder object. |
|
| Method Summary | ||
|---|---|---|
|
protected PublicKey |
decodeKey(InputStream encodedKey,
CryptoSystem cryptoSystem,
String keyAlgorithm)
Decodes the passed in key. |
|
protected PublicKey |
decodeKey(ASN1InputByteArray parameters,
String algorithm,
byte[] subjectPublicKey,
CryptoSystem cryptoSystem)
e Decodes the specified public key. |
|
protected String |
getEncodingAlgorithm()
Returns the encoding algorithm used, "X509". |
|
protected String[] |
getKeyAlgorithms()
Returns the key algorithm that was encoded. |
| Methods inherited from class net.rim.device.api.crypto.encoder.PublicKeyDecoder |
|---|
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 X509_PublicKeyDecoder()
X509_PublicKeyDecoder object.
This is the default constructor.
| Method Detail |
|---|
protected PublicKey decodeKey(InputStream encodedKey,
CryptoSystem cryptoSystem,
String keyAlgorithm)
throws NoSuchAlgorithmException,
InvalidKeyException,
InvalidKeyEncodingException,
IOException,
CryptoTokenException,
CryptoUnsupportedOperationException,
InvalidCryptoSystemException,
UnsupportedCryptoSystemException
PublicKeyDecoder
decodeKey in class PublicKeyDecoderencodedKey - The public key to decode, passed in as an input stream.cryptoSystem - A cryptoSystem containing the parameters to use in making this key.keyAlgorithm - The type of key.
NoSuchAlgorithmException - Thrown if the specified algorithm is
invalid.
InvalidKeyException - Thrown if the specified key is invalid.
InvalidKeyEncodingException - Thrown if the key is improperly
formatted.
IOException - Thrown when an I/O error occurs.
CryptoTokenException - Thrown if an error occurs with the crypto
token or the crypto token is invalid.
CryptoUnsupportedOperationException - Thrown if a call is made to
an unsupported operation.
InvalidCryptoSystemException - Thrown if the specified crypto
system is invalid.
UnsupportedCryptoSystemException - Thrown if the specified crypto
system is unsupported.
protected PublicKey decodeKey(ASN1InputByteArray parameters,
String algorithm,
byte[] subjectPublicKey,
CryptoSystem cryptoSystem)
throws NoSuchAlgorithmException,
InvalidKeyException,
InvalidKeyEncodingException,
ASN1EncodingException,
CryptoTokenException,
CryptoUnsupportedOperationException,
InvalidCryptoSystemException,
UnsupportedCryptoSystemException
Implemented by a subclass to finish decoding the key.
parameters - An ASN1 byte array containing the parameters for the
encoding.algorithm - A String representing the algorithm used to encode the
data.subjectPublicKey - The subject public key data.cryptoSystem - The crypto system associated with the key.
NoSuchAlgorithmException - Thrown if the specified algorithm cannot
be found.
InvalidKeyException - Thrown if the specified key is invalid.
InvalidKeyEncodingException - Thrown if the specified key is
improperly formatted.
ASN1EncodingException - Thrown if the paramters byte array is
improperly formatted.
CryptoTokenException - Thrown if an error occurs with the crypto
token or the crypto token is invalid.
CryptoUnsupportedOperationException - Thrown if a call is made to
an unsupported operation.
InvalidCryptoSystemException - Thrown if the specified crypto
system is invalid.
UnsupportedCryptoSystemException - Thrown if the specified crypto
system is unsupported.protected String getEncodingAlgorithm()
getEncodingAlgorithm in class PublicKeyDecoderprotected String[] getKeyAlgorithms()
getKeyAlgorithms in class PublicKeyDecoder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal