|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.crypto.keystore.KeyStoreManager
public final class KeyStoreManager
Coordinates all administrative tasks associated with each key store.
Ensures that any revoked certificates are propogated throughout all of the keystores and that if the passphrase is changed it will be changed for all of the keystores.
Method Summary | ||
---|---|---|
|
void |
certificateAdded(Certificate certificate)
This method is called by the KeyStore when a new certificate is added to the KeyStore collection. |
|
static KeyStoreManager |
getInstance()
This method returns an instance of the KeyStoreManager . |
|
KeyStore |
getKeyStore(KeyStoreData data)
This method will search through all of the KeyStores currently registered with the KeyStoreManager to see if the KeyStoreData object is a member of that KeyStore. |
|
void |
register(String className,
long id,
CodeSigningKey key,
KeyStore keyStore)
Registers a key store. |
|
void |
register(KeyStore keyStore)
Registers a key store with the key store manager. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static KeyStoreManager getInstance()
KeyStoreManager
.
KeyStoreManager
object.public void register(KeyStore keyStore)
If you are registering a PersistableRIMKeyStore then use the other register method.
This is useful for when the KeyStore password is changed on the device.
The KeyStoreManager will inform each of the registered keystores what the
old password was and what the new password is.
Registration is currently mandatory for all keystores.
If you develop your own keystore please ensure that you register with
the KeyStoreManager
.
keyStore
- The key store to be registered.public void register(String className, long id, CodeSigningKey key, KeyStore keyStore) throws KeyStoreRegisterException
This method is used to register key stores that need to be persistable. That is, keystores that extend or mimic the PersistableRIMKeyStore. This method will test to make sure that your KeyStore is persistable.
className
- The class name of the PersistableRIMKeyStoreFactory.id
- A long representing which key store this is. It has to be unique.key
- a CodeSigningKey which can be used to prevent unauthorized access to your keystore.keyStore
- The key store to register.
KeyStoreRegisterException
- Thrown if the class could not be
correctly instantiated.public KeyStore getKeyStore(KeyStoreData data)
public void certificateAdded(Certificate certificate)
certificate
- The certificate that was added to the KeyStore.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.