SHOW Signed

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

java.lang.Object
  |
  +--net.rim.device.api.crypto.keystore.PrivateKeysKeyStoreIndex
All Implemented Interfaces:
KeyStoreIndex

public class PrivateKeysKeyStoreIndex
extends Object
implements KeyStoreIndex

Implements an index to allow you to look up a key store data object by the issuer name of the certificate in the data blob.

For more information on using a keystore index, see Using the keystore index. This quick tutorial provides overview information as well as an example on how to use an index within a keystore.

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.


Field Summary
 Category: Signed static long ID
          The long representing this index.
 
Constructor Summary
 Category: Signed PrivateKeysKeyStoreIndex()
          Creates an issuer key store data comparator.
 
Method Summary
 Category: Signed  void addToIndex(KeyStoreData data, Certificate certificate, KeyStoreDataMap dataMap)
           
 Category: Signed  void addToIndex(KeyStoreData data, KeyStoreDataMap dataMap)
          This method is called by the index to add the alias values or integers that are going to be used to link to the key store data object that was passed into this method.
 Category: Signed  int getHash(Object target)
          Returns the int representing the target object passed into the KeyStoreDataComparator.
 Category: Signed  long getID()
          Returns the long associated with this index class for use inside the keystore.
 Category: Signed  boolean matches(KeyStoreData data, Object target)
          This method will return true if the target is the KeyStoreData object that is found using the index.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final long ID
The long representing this index.
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.
Constructor Detail

PrivateKeysKeyStoreIndex

public PrivateKeysKeyStoreIndex()
Creates an issuer key store data comparator.
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.
Method Detail

addToIndex

public void addToIndex(KeyStoreData data,
                       Certificate certificate,
                       KeyStoreDataMap dataMap)
Since:
JDE 3.6
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.

addToIndex

public void addToIndex(KeyStoreData data,
                       KeyStoreDataMap dataMap)
Description copied from interface: KeyStoreIndex
This method is called by the index to add the alias values or integers that are going to be used to link to the key store data object that was passed into this method.

Specified by:
addToIndex in interface KeyStoreIndex
Since:
JDE 3.6
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.

getHash

public int getHash(Object target)
Description copied from interface: KeyStoreIndex
Returns the int representing the target object passed into the KeyStoreDataComparator.

Specified by:
getHash in interface KeyStoreIndex
Since:
JDE 3.6
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.

getID

public long getID()
Description copied from interface: KeyStoreIndex
Returns the long associated with this index class for use inside the keystore.

Note that this long has to be unique.

Specified by:
getID in interface KeyStoreIndex
Following copied from interface: net.rim.device.api.crypto.keystore.KeyStoreIndex
Returns:
A long that is associated with the index.
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.

matches

public boolean matches(KeyStoreData data,
                       Object target)
Description copied from interface: KeyStoreIndex
This method will return true if the target is the KeyStoreData object that is found using the index.

Specified by:
matches in interface KeyStoreIndex
Since:
JDE 3.6
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.


Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.