|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.crypto.keystore.CombinedKeyStore
public class CombinedKeyStore
This class allows a developer to combine several keystores into what looks like one keystore.
This is useful when you have several keystores that might contain the key you are looking for. You can combine these keystores temporarily and search through them.
Note: It should be noted that some
operations do not make sense to operate on a collection of keystores.
For example, the set
method would add a new key to a keystore. It does not
make sense to add the new key automatically to all of the keystores.
So, the concept of a preferred keystore exists to enable
those kinds of operations to be performed on one of the keystores.
Any operation that only operates on a preferred key store is denoted
as such. Ensure that you check the javadocs for each function you
are calling so you know exactly what operations are being performed.
For sample code on how to use a key store see: here
Field Summary |
---|
Fields inherited from interface net.rim.device.api.crypto.keystore.KeyStore |
---|
SECURITY_LEVEL_HIGH, SECURITY_LEVEL_LOW, SECURITY_LEVEL_MEDIUM, SECURITY_LEVEL_NOT_APPLICABLE |
Constructor Summary | ||
---|---|---|
|
CombinedKeyStore(KeyStore[] keyStores)
Initializes the combined keystore with an array of underlying keystores. |
|
|
CombinedKeyStore(KeyStore[] keyStores,
int preferredKeyStore)
Initializes the combined keystore with an array of underlying keystores. |
Method Summary | ||
---|---|---|
|
void |
addCollectionListener(Object listener)
This method is called when the developer wants to listen in on when records are added and removed to/from a particular keystore. |
|
boolean |
addIndex(KeyStoreIndex index)
Adds an index to all of the information currently in the key store. |
|
void |
addIndices(KeyStoreIndex[] indices)
Adds an array of indices to all of the information currently in the key store. |
|
void |
addKeyStores(KeyStore[] keyStores)
Allows for the addition of more keystores to the combined key store. |
|
void |
changePreferredKeyStore(int newPreferredKeyStore)
Allows you to change the preferred key store. |
|
boolean |
checkTicket(KeyStoreTicket ticket)
Calls the checkTicket method on the preferred key store. |
|
Enumeration |
elements()
Returns an enumeration of the KeyStoreData that are stored in the KeyStore. |
|
Enumeration |
elements(boolean backingKeyStore)
Returns an enumeration of the KeyStoreData that are stored in the KeyStore. |
|
Enumeration |
elements(long index)
Returns an enumeration of the elements (KeyStoreData) inside the key store according to the index provided with the parameter. |
|
Enumeration |
elements(long index,
boolean backingKeyStore)
Returns an enumeration of the elements (KeyStoreData) inside the key store according to the index provided with the parameter. |
|
Enumeration |
elements(long index,
Object associatedData)
Returns an array of keystore information that contains the certificates, keys and other data associated with this alias. |
|
Enumeration |
elements(long index,
Object associatedData,
boolean backingKeyStore)
Returns an array of keystore information that contains the certificates, keys and other data associated with this alias. |
|
boolean |
exists(long index,
Object associatedData)
Returns a boolean denoting whether an object exists with the given alias and the given index class. |
|
boolean |
existsIndex(long index)
Returns a boolean denoting whether this index already exists in the key store. |
|
KeyStore |
getBackingKeyStore()
This method returns the backing keystore for the preferred keystore currently set in the combined keystore. |
|
KeyStore |
getKeyStore(int index)
This method returns the KeyStore associated with the index specified as the only parameter. |
|
String |
getName()
Returns the name of the preferred key store. |
|
int |
getNumKeyStores()
This method returns the number of keystores that are currently contained in the CombinedKeyStore. |
|
KeyStoreTicket |
getTicket()
Calls the getTicket method on the preferred key store. |
|
KeyStoreTicket |
getTicket(String prompt)
Calls the getTicket method on the preferred key store. |
|
boolean |
isMember(byte[] certificateEncoding)
Returns a boolean dictating whether or not this certificate is contained inside the KeyStore. |
|
boolean |
isMember(Key key)
Returns a boolean dictating whether or not this key is contained inside the KeyStore. |
|
boolean |
isMember(Certificate certificate)
Returns a boolean dictating whether or not this certificate is contained inside the KeyStore. |
|
boolean |
isMember(KeyStoreData data)
Returns a boolean dictating whether or not this KeyStoreData is contained inside
the KeyStore. |
|
void |
removeCollectionListener(Object listener)
This method is called when the developer wants to remove the listener from this keystore. |
|
void |
removeIndex(long index)
Removes an index from all of the keystores in the combined keystore. |
|
void |
removeKey(KeyStoreData data,
KeyStoreTicket ticket)
Remove the key from the preferred keystore. |
|
void |
removeKeyStore(int index)
Allows you to remove a keystore from the combined keystore. |
|
KeyStoreData |
set(AssociatedData[] associatedData,
String label,
PrivateKey privateKey,
String privateKeyEncodingAlgorithm,
int securityLevel,
PublicKey publicKey,
long keyUsage,
KeyStoreTicket ticket)
Sets a new key into the preferred keystore. |
|
KeyStoreData |
set(AssociatedData[] associatedData,
String label,
PrivateKey privateKey,
String privateKeyEncodingAlgorithm,
int securityLevel,
Certificate certificate,
CertificateStatus certStatus,
KeyStoreTicket ticket)
Sets a new key into the preferred keystore. |
|
KeyStoreData |
set(AssociatedData[] associatedData,
String label,
PrivateKey privateKey,
String privateKeyEncodingAlgorithm,
int securityLevel,
KeyStoreTicket ticket)
Sets a new key into the preferred keystore. |
|
KeyStoreData |
set(AssociatedData[] associatedData,
String label,
PublicKey publicKey,
long keyUsage,
KeyStoreTicket ticket)
Sets a new key into the preferred keystore. |
|
KeyStoreData |
set(AssociatedData[] associatedData,
String label,
SymmetricKey symmetricKey,
String symmetricKeyEncodingAlgorithm,
int securityLevel,
KeyStoreTicket ticket)
Sets a new key into the preferred keystore. |
|
KeyStoreData |
set(AssociatedData[] associatedData,
String label,
Certificate certificate,
CertificateStatus certStatus,
KeyStoreTicket ticket)
Sets a new key into the preferred keystore. |
|
int |
size()
Returns the number of elements inside the key store. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.rim.device.api.crypto.keystore.KeyStore |
---|
changePassword |
Constructor Detail |
---|
public CombinedKeyStore(KeyStore[] keyStores)
You can also add to this array later on if desired. It should be noted that by default the preferred keystore will be the first keystore given in the array unless otherwise specified.
keyStores
- The array of keystores that you want as part
of the combined keystore.public CombinedKeyStore(KeyStore[] keyStores, int preferredKeyStore)
You can also add to this array later on if desired.
keyStores
- The array of keystores that you want as part
of the combined keystore.preferredKeyStore
- An integer representing the index within
the array of keystores that will be considered the preferred
keystore. The preferred keystore will be the keystore that new keys
are added to and other operations that are not obviously made
for multiple key stores. (i.e. anything that causes a change
in the state of a keystore). Remember that arrays are indexed
at zero. Hence, if you want the very first keystore to be the preferred
keystore it would have an index of 0.Method Detail |
---|
public KeyStoreData set(AssociatedData[] associatedData, String label, PrivateKey privateKey, String privateKeyEncodingAlgorithm, int securityLevel, KeyStoreTicket ticket) throws NoSuchAlgorithmException, InvalidKeyEncodingException, CryptoTokenException, CryptoUnsupportedOperationException, KeyStoreCancelException, InvalidKeyException
The new key exists exactly as it did in the original keystore implementation.
set
in interface KeyStore
associatedData
- An associated Data array containing all of the
aliases to index this record on in the keystore. This can be null and we
will simply rely on other indices added to the KeyStore to find your key.label
- The label that is shown to the user when the private key is accessed. This gives
the user some information about what private key is being accessed so they can make a informed
decision about inputting their private key password to unlock the key. It should be noted that this label
will have a string prefixed to it such as "Please enter your passphrase for: " and then your string.privateKey
- The private key data to be stored in the keystore.privateKeyEncodingAlgorithm
- Allows the user to specify what encoding algorithm is used
to encode the private key.securityLevel
- The security level associated with this key store data private key. That is, when
someone attempts to access the private key they will be prompted according to the security level of the
key store data.
High | The user will be asked for a passphrase |
Low | The user will not be prompted. |
Note: Once the security level is set it cannot be changed.
ticket
- A ticket denoting whether or not the developer has access to the keystore. A ticket can be retrieved
from the getTicket method in the key store or keystore data. The ticket can also be null which will most likely
prompt for a passphrase from the user automatically (essentially calls getTicket
for you).
NoSuchAlgorithmException
- Thrown when the specified cipher is invalid.
InvalidKeyEncodingException
- Thrown when the specified key is
improperly formatted.
Note: This method does not affect any underlying keystores.
CryptoTokenException
- Thrown when an error occurs with the crypto
token or the crypto token is invalid.
CryptoUnsupportedOperationException
- Thrown when a call is made to
an unsupported operation.
KeyStoreCancelException
- Thrown when the user fails to enter a password or decides to cancel
the password entry operation.
InvalidKeyException
- Thrown when the specified key is invalid.public KeyStoreData set(AssociatedData[] associatedData, String label, PrivateKey privateKey, String privateKeyEncodingAlgorithm, int securityLevel, PublicKey publicKey, long keyUsage, KeyStoreTicket ticket) throws NoSuchAlgorithmException, InvalidKeyEncodingException, CryptoTokenException, CryptoUnsupportedOperationException, KeyStoreCancelException, InvalidKeyException
The new key exists exactly as it did in the original keystore implementation.
set
in interface KeyStore
associatedData
- An associated Data array containing all of the
aliases to index this record on in the keystore. This can be null and we
will simply rely on other indices added to the KeyStore to find your key.label
- The label that is shown to the user when the private key is accessed. This gives
the user some information about what private key is being accessed so they can make a informed
decision about inputting their private key password to unlock the key. It should be noted that this label
will have a string prefixed to it such as "Please enter your passphrase for: " and then your string.privateKey
- The private key data to be stored in the keystore.privateKeyEncodingAlgorithm
- Allows the user to specify what encoding algorithm is used
to encode the private key.securityLevel
- The security level associated with this key store data private key. That is, when
someone attempts to access the private key they will be prompted according to the security level of the
key store data.
High | The user will be asked for a passphrase |
Low | The user will not be prompted. |
Note: Once the security level is set it cannot be changed.
publicKey
- The public key data associated with the private key that will be stored
in the key store. Note that we make no restrictions on what is stored in these records.
The public key does not have to match the private key (make a key pair) if not desired.
Note: This method does not affect any underlying keystores.keyUsage
- Specifies the key usage of the key - see KeyUsage
. These fields can be OR'd together
to produce the correct key usage stored as an integer.ticket
- A ticket denoting whether or not the developer has access to the keystore. A ticket can be retrieved
from the getTicket method in the key store or keystore data. The ticket can also be null which will most likely
prompt for a passphrase from the user automatically (essentially calls getTicket
for you).
NoSuchAlgorithmException
- Thrown when the specified cipher is invalid.
InvalidKeyEncodingException
- Thrown when the specified key is
improperly formatted.
CryptoTokenException
- Thrown when an error occurs with the crypto
token or the crypto token is invalid.
CryptoUnsupportedOperationException
- Thrown when a call is made to
an unsupported operation.
KeyStoreCancelException
- Thrown when the user fails to enter a password or decides to cancel
the password entry operation.
InvalidKeyException
- Thrown when the specified key is invalid.public KeyStoreData set(AssociatedData[] associatedData, String label, PrivateKey privateKey, String privateKeyEncodingAlgorithm, int securityLevel, Certificate certificate, CertificateStatus certStatus, KeyStoreTicket ticket) throws NoSuchAlgorithmException, InvalidKeyEncodingException, InvalidKeyException, CryptoTokenException, CryptoUnsupportedOperationException, KeyStoreCancelException
The new key exists exactly as it did in the original keystore implementation.
set
in interface KeyStore
associatedData
- An associated Data array containing all of the
aliases to index this record on in the keystore. This can be null and we
will simply rely on other indices added to the KeyStore to find your key.label
- The label that is shown to the user when the private key is accessed. This gives
the user some information about what private key is being accessed so they can make a informed
decision about inputting their private key password to unlock the key. It should be noted that this label
will have a string prefixed to it such as "Please enter your passphrase for: " and then your string.privateKey
- The private key data to be stored in the keystore.privateKeyEncodingAlgorithm
- Allows the user to specify what encoding algorithm is used
to encode the private key.securityLevel
- The security level associated with this key store data private key. That is, when
someone attempts to access the private key they will be prompted according to the security level of the
key store data.
High | The user will be asked for a passphrase |
Low | The user will not be prompted. |
Note: Once the security level is set it cannot be changed. Note: This method does not affect any underlying keystores.
certificate
- A certificate corresponding to this key store data.certStatus
- The certificate status that is accompanying the certificate for this key store data.ticket
- A ticket denoting whether or not the developer has access to the keystore. A ticket can be retrieved
from the getTicket method in the key store or keystore data. The ticket can also be null which will most likely
prompt for a passphrase from the user automatically (essentially calls getTicket
for you).
NoSuchAlgorithmException
- Thrown when the specified cipher is invalid.
InvalidKeyEncodingException
- Thrown when the specified key is
improperly formatted.
InvalidKeyException
- Thrown when the specified key is invalid.
CryptoTokenException
- Thrown when an error occurs with the crypto
token or the crypto token is invalid.
CryptoUnsupportedOperationException
- Thrown when a call is made to
an unsupported operation.
KeyStoreCancelException
- Thrown when the user fails to enter a password or decides to cancel
the password entry operation.public KeyStoreData set(AssociatedData[] associatedData, String label, PublicKey publicKey, long keyUsage, KeyStoreTicket ticket) throws NoSuchAlgorithmException, InvalidKeyEncodingException, InvalidKeyException, CryptoTokenException, CryptoUnsupportedOperationException, KeyStoreCancelException
The new key exists exactly as it did in the original keystore implementation.
set
in interface KeyStore
associatedData
- An associated Data array containing all of the
aliases to index this record on in the keystore. This can be null and we
will simply rely on other indices added to the KeyStore to find your key.
Note: This method does not affect any underlying keystores.label
- The label that is shown to the user when the private key is accessed. This gives
the user some information about what private key is being accessed so they can make a informed
decision about inputting their private key password to unlock the key. It should be noted that this label
will have a string prefixed to it such as "Please enter your passphrase for: " and then your string.publicKey
- The public key data associated with the private key that will be stored
in the key store. Note that we make no restrictions on what is stored in these records.
The public key does not have to match the private key (make a key pair) if not desired.keyUsage
- Specifies the key usage of the key - see KeyUsage
. These fields can be OR'd together
to produce the correct key usage stored as an integer.ticket
- A ticket denoting whether or not the developer has access to the keystore. A ticket can be retrieved
from the getTicket method in the key store or keystore data. The ticket can also be null which will most likely
prompt for a passphrase from the user automatically (essentially calls getTicket
for you).
NoSuchAlgorithmException
- Thrown when the specified cipher is invalid.
InvalidKeyEncodingException
- Thrown when the specified key is
improperly formatted.
InvalidKeyException
- Thrown when the specified key is invalid.
CryptoTokenException
- Thrown when an error occurs with the crypto
token or the crypto token is invalid.
CryptoUnsupportedOperationException
- Thrown when a call is made to
an unsupported operation.
KeyStoreCancelException
- Thrown when the user fails to enter a password or decides to cancel
the password entry operation.public KeyStoreData set(AssociatedData[] associatedData, String label, Certificate certificate, CertificateStatus certStatus, KeyStoreTicket ticket) throws NoSuchAlgorithmException, InvalidKeyEncodingException, InvalidKeyException, CryptoTokenException, CryptoUnsupportedOperationException, KeyStoreCancelException
The new key exists exactly as it did in the original keystore implementation.
set
in interface KeyStore
associatedData
- An associated Data array containing all of the
aliases to index this record on in the keystore. This can be null and we
will simply rely on other indices added to the KeyStore to find your key.
Note: This method does not affect any underlying keystores.label
- The label that is shown to the user when the private key is accessed. This gives
the user some information about what private key is being accessed so they can make a informed
decision about inputting their private key password to unlock the key. It should be noted that this label
will have a string prefixed to it such as "Please enter your passphrase for: " and then your string.certificate
- A certificate corresponding to this key store data.certStatus
- The certificate status that is accompanying the certificate for this key store data.ticket
- A ticket denoting whether or not the developer has access to the keystore. A ticket can be retrieved
from the getTicket method in the key store or keystore data. The ticket can also be null which will most likely
prompt for a passphrase from the user automatically (essentially calls getTicket
for you).
NoSuchAlgorithmException
- Thrown when the specified cipher is invalid.
InvalidKeyEncodingException
- Thrown when the specified key is
improperly formatted.
InvalidKeyException
- Thrown when the specified key is invalid.
CryptoTokenException
- Thrown when an error occurs with the crypto
token or the crypto token is invalid.
CryptoUnsupportedOperationException
- Thrown when a call is made to
an unsupported operation.
KeyStoreCancelException
- Thrown when the user fails to enter a password or decides to cancel
the password entry operation.public KeyStoreData set(AssociatedData[] associatedData, String label, SymmetricKey symmetricKey, String symmetricKeyEncodingAlgorithm, int securityLevel, KeyStoreTicket ticket) throws NoSuchAlgorithmException, InvalidKeyEncodingException, InvalidKeyException, CryptoTokenException, CryptoUnsupportedOperationException, KeyStoreCancelException
The new key exists exactly as it did in the original keystore implementation.
set
in interface KeyStore
associatedData
- An associated Data array containing all of the
aliases to index this record on in the keystore. This can be null and we
will simply rely on other indices added to the KeyStore to find your key.label
- The label that is shown to the user when the private key is accessed. This gives
the user some information about what private key is being accessed so they can make a informed
decision about inputting their private key password to unlock the key. It should be noted that this label
will have a string prefixed to it such as "Please enter your passphrase for: " and then your string.symmetricKey
- A symmetric key to be stored in the key store.symmetricKeyEncodingAlgorithm
- The encoding algorithm associated
with the key.securityLevel
- The security level associated with this key store data private key. That is, when
someone attempts to access the private key they will be prompted according to the security level of the
key store data.
High | The user will be asked for a passphrase |
Low | The user will not be prompted. |
Note: Once the security level is set it cannot be changed. Note: This method does not affect any underlying keystores.
ticket
- A ticket denoting whether or not the developer has access to the keystore. A ticket can be retrieved
from the getTicket method in the key store or keystore data. The ticket can also be null which will most likely
prompt for a passphrase from the user automatically (essentially calls getTicket
for you).
NoSuchAlgorithmException
- Thrown when the specified cipher is invalid.
InvalidKeyEncodingException
- Thrown when the specified key is
improperly formatted.
InvalidKeyException
- Thrown when the specified key is invalid.
CryptoTokenException
- Thrown when an error occurs with the crypto
token or the crypto token is invalid.
CryptoUnsupportedOperationException
- Thrown when a call is made to
an unsupported operation.
KeyStoreCancelException
- Thrown when the user fails to enter a password or decides to cancel
the password entry operation.public Enumeration elements(long index, Object associatedData)
elements
in interface KeyStore
index
- A long representing the Index class that
denotes where to find the associatedData and how it is used.associatedData
- An object denoting which key store information
should be returned.
KeyStoreData
) that
fit the description given by the index and alias.public Enumeration elements(long index, Object associatedData, boolean backingKeyStore)
elements
in interface KeyStore
index
- A long representing the Index class that
denotes where to find the associatedData and how it is used.associatedData
- An object denoting which key store information
should be returned.backingKeyStore
- a boolean denoting whether or not
to automatically search through the underlying key store.
KeyStoreData
) that
fit the description given by the index and alias.public void removeKey(KeyStoreData data, KeyStoreTicket ticket) throws KeyStoreCancelException
removeKey
in interface KeyStore
data
- The data to be removed from the key store.ticket
- A ticket denoting whether or not the developer has access to the keystore. A ticket can be retrieved
from the getTicket
method in the key store or keystore data. The ticket can also be null which will most likely
prompt for a passphrase from the user automatically (essentially calls
getTicket for you).
KeyStoreCancelException
- Thrown if the user fails to enter a password.public Enumeration elements()
elements
in interface KeyStore
KeyStoreData
).public Enumeration elements(boolean backingKeyStore)
elements
in interface KeyStore
backingKeyStore
- if true this method will return
the elements from the backing key store as well.
KeyStoreData
).public Enumeration elements(long index)
elements
in interface KeyStore
index
- A long representing what index to return
an enumeration of the elements for.
KeyStoreData
).public Enumeration elements(long index, boolean backingKeyStore)
elements
in interface KeyStore
index
- A long representing what index to return
an enumeration of the elements for.backingKeyStore
- a boolean which determines whether elements
should also be returned from the backing keystore.
KeyStoreData
).public boolean exists(long index, Object associatedData)
exists
in interface KeyStore
index
- The long denoting the index class.associatedData
- An object representing the associated data to the key store
information.
public boolean addIndex(KeyStoreIndex index)
This enables the developer to access information in the key store according to this new associatedData field. For a combined key store this will add the index to all of the underlying keystores.
addIndex
in interface KeyStore
index
- An Index class that is implemented by the developer.
It denotes the key store information is indexed
according to fields currently contained in key store objects such
as certificates.
public void addIndices(KeyStoreIndex[] indices)
This enables the developer to access information in the key store according to this new associatedData field. For a combined key store this will add the index to all of the underlying keystores.
addIndices
in interface KeyStore
indices
- A KeyStoreIndex
class that is implemented by the developer.
It denotes the key store information is indexed
according to fields currently contained in key store objects such
as certificates.public void removeIndex(long index)
removeIndex
in interface KeyStore
index
- the long representing the ID of the index to remove.public boolean existsIndex(long index)
existsIndex
in interface KeyStore
index
- The long representing the index.
public int size()
For the combined key store this returns the number of elements in all of the keystores added together. That is, if you had five elements in one key store and six elements in a second key store then this would return 11 elements.
size
in interface KeyStore
public void addKeyStores(KeyStore[] keyStores)
Note This will not make the distinction of checking to see if a keystore has already been added to the combined keystore. This is left to the developer since there is no real way to uniquely identify a keystore.
keyStores
- An array of additional key stores
that will be added to the combined key store.public void removeKeyStore(int index) throws IllegalArgumentException
index
- the index into the array of keystores that you would
like to remove.
IllegalArgumentException
- Thrown if the integer is not
in the following range 0 < x < size where x is the
new preferred key store and size is the number of keystores
currently in the combined key store.public void changePreferredKeyStore(int newPreferredKeyStore) throws IllegalArgumentException
newPreferredKeyStore
- A new key store index
that will be used to index into the array of stored
keystores.
IllegalArgumentException
- Thrown if the integer is not
in the following range 0 < x < size where x is the
new preferred key store and size is the number of keystores
currently in the combined key store.public KeyStoreTicket getTicket() throws KeyStoreCancelException
getTicket
method on the preferred key store.
getTicket
in interface KeyStore
KeyStoreCancelException
- Thrown when the user fails to enter a password
or decides to cancel the password entry operation.public KeyStoreTicket getTicket(String prompt) throws KeyStoreCancelException
getTicket
method on the preferred key store.
getTicket
in interface KeyStore
prompt
- an additional string provided to the allow the application developer to customize
the ticket prompt dialog to better fit their application needs.
KeyStoreCancelException
- Thrown when the user fails to enter a password
or decides to cancel the password entry operation.public boolean checkTicket(KeyStoreTicket ticket)
checkTicket
method on the preferred key store.
checkTicket
in interface KeyStore
ticket
- the KeyStoreTicket we want to check.
public String getName()
getName
in interface KeyStore
public boolean isMember(Certificate certificate)
isMember
in interface KeyStore
certificate
- The specified certificate.
public boolean isMember(byte[] certificateEncoding)
isMember
in interface KeyStore
certificateEncoding
- The encoding of the specified certificate.
public boolean isMember(Key key)
isMember
in interface KeyStore
key
- The specified key.
public boolean isMember(KeyStoreData data)
KeyStoreData
is contained inside
the KeyStore.
isMember
in interface KeyStore
data
- The key store data.
public void addCollectionListener(Object listener)
addCollectionListener
in interface CollectionEventSource
addCollectionListener
in interface KeyStore
listener
- The KeyStoreListener
interface
that must be implemented by the calling class
which will be called when a record is added or
removed.CollectionEventSource.addCollectionListener(java.lang.Object)
public void removeCollectionListener(Object listener)
removeCollectionListener
in interface CollectionEventSource
removeCollectionListener
in interface KeyStore
listener
- The KeyStoreListener
to be removed.CollectionEventSource.removeCollectionListener(java.lang.Object)
public KeyStore getBackingKeyStore()
getBackingKeyStore
in interface KeyStore
public int getNumKeyStores()
public KeyStore getKeyStore(int index) throws IllegalArgumentException
index
- the index into the array of KeyStores that we should return.
IllegalArgumentException
- if the index is invalid.
|
|||||||||
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.