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

java.lang.Object
  extended by 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:
BlackBerry API 3.6.0

Constructor Summary
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.
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:
BlackBerry API 3.6.0


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.
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:
BlackBerry API 3.6.0

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.
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:
BlackBerry API 3.6.0





Copyright 1999-2010 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. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.