SHOW Signed SHOW CryptoExtensionAPI

net.rim.device.api.crypto.encoder
Class WTLS_PublicKeyDecoder

java.lang.Object
  |
  +--net.rim.device.api.crypto.encoder.PublicKeyDecoder
        |
        +--net.rim.device.api.crypto.encoder.WTLS_PublicKeyDecoder

public class WTLS_PublicKeyDecoder
extends PublicKeyDecoder

Implements the public key decoder for WTLS.

Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
CryptoExtensionAPI: This element is part of the Crypto Extension API. These APIs are intended for parties interested in extending the security provider frameworks, such as integrating a new security medium.

Since:
JDE 3.6.0

Constructor Summary
 Category: Signed Category: CryptoExtensionAPI WTLS_PublicKeyDecoder()
          Creates a WTLS_PublicKeyDecoder object.
 
Method Summary
 Category: Signed Category: CryptoExtensionAPI  PublicKey decodeKey(InputStream encodedKey, CryptoSystem cryptoSystem, String keyAlgorithm)
           
 Category: Signed Category: CryptoExtensionAPI  String getEncodingAlgorithm()
          Returns the encoding algorithm used, "WTLS".
 Category: Signed Category: CryptoExtensionAPI  String[] getKeyAlgorithms()
          Returns the key algorithm 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

WTLS_PublicKeyDecoder

public WTLS_PublicKeyDecoder()
Creates a WTLS_PublicKeyDecoder object.

This is the default constructor.

Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
CryptoExtensionAPI: This element is part of the Crypto Extension API. These APIs are intended for parties interested in extending the security provider frameworks, such as integrating a new security medium.
Method Detail

decodeKey

public PublicKey decodeKey(InputStream encodedKey,
                           CryptoSystem cryptoSystem,
                           String keyAlgorithm)
                    throws NoSuchAlgorithmException,
                           InvalidKeyException,
                           InvalidKeyEncodingException,
                           CryptoTokenException,
                           IOException,
                           InvalidCryptoSystemException,
                           UnsupportedCryptoSystemException,
                           CryptoUnsupportedOperationException
Description copied from class: PublicKeyDecoder
Decodes the passed in key.

Overrides:
decodeKey in class PublicKeyDecoder
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
CryptoExtensionAPI: This element is part of the Crypto Extension API. These APIs are intended for parties interested in extending the security provider frameworks, such as integrating a new security medium.

getEncodingAlgorithm

public String getEncodingAlgorithm()
Returns the encoding algorithm used, "WTLS".

This method will always return the String "WTLS".

Overrides:
getEncodingAlgorithm in class PublicKeyDecoder
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
CryptoExtensionAPI: This element is part of the Crypto Extension API. These APIs are intended for parties interested in extending the security provider frameworks, such as integrating a new security medium.

getKeyAlgorithms

public String[] getKeyAlgorithms()
Returns the key algorithm encoded.
Overrides:
getKeyAlgorithms in class PublicKeyDecoder
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
CryptoExtensionAPI: This element is part of the Crypto Extension API. These APIs are intended for parties interested in extending the security provider frameworks, such as integrating a new security medium.


Copyright 1999-2004 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.