SHOW Signed SHOW CryptoExtensionAPI
 

net.rim.device.api.crypto.keystore
Class KeyStoreDataMap

java.lang.Object
  |
  +--net.rim.device.api.crypto.keystore.KeyStoreDataMap

public class KeyStoreDataMap
extends Object

This class implements the functionality of adding hashes to the key store according to the developers desires for what would be considered as the index or hash of the key store data.

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

Since:
JDE 3.6.0

Constructor Summary
 Category: CryptoExtensionAPI Category: Signed KeyStoreDataMap(IntMultiMap map)
          Initializes the KeyStoreDataMap with the int multi map to be used to add items directly into the keystore.
 
Method Summary
 Category: Signed  void add(int hash, KeyStoreData data)
          This method is used to add hashes or aliases to the key store according to the key store data that is passed in.
 Category: Signed  boolean checkHash(int hash)
          This is a test method that checks to see if the hash passed in is contained in the int multi map.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyStoreDataMap

public KeyStoreDataMap(IntMultiMap map)
Initializes the KeyStoreDataMap with the int multi map to be used to add items directly into the keystore. This should only be created by a KeyStore.

Parameters:
map - The int multi map in the keystore.
Since:
JDE 3.6.0
Category:
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.
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Method Detail

add

public void add(int hash,
                KeyStoreData data)
This method is used to add hashes or aliases to the key store according to the key store data that is passed in.

Parameters:
hash - The hash that this key store data will be associated with.
data - The key store data to associate with this hash.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

checkHash

public boolean checkHash(int hash)
This is a test method that checks to see if the hash passed in is contained in the int multi map.

Parameters:
hash - The specified hash to check.
Returns:
A boolean that determines if the hash is contained in the multimap.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.



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.