| |
|
| java.lang.Object com.sun.midp.publickeystore.PublicKeyStore
All known Subclasses: com.sun.midp.publickeystore.PublicKeyStoreBuilderBase, com.sun.midp.publickeystore.WebPublicKeyStore,
PublicKeyStore | public class PublicKeyStore (Code) | | A read-only public keystore for use with MIDP.
|
Constructor Summary | |
protected | PublicKeyStore() Constructor for subclasses. | public | PublicKeyStore(InputStream in) Constructs a read-only keystore from a serialized keystore created
by
PublicKeyStoreBuilder . | public | PublicKeyStore(InputStream in, Vector sharedKeyList) Constructs a read-only keystore from a serialized keystore created
by
PublicKeyStoreBuilder . |
Method Summary | |
public synchronized Vector | findKeys(String owner) Finds a CAs Public keys based on the distinguished name. | public synchronized PublicKeyInfo | getKey(int number) Gets a by number from the keystore. | protected void | initPublicKeyStore(Vector sharedKeyList) Lets this class work with a writeable key list of a subclass.
This is needed because we cannot make the key list in this
class protected for security reasons. | protected void | initPublicKeyStore(InputStream in, Vector sharedKeyList) Lets this class work with a writeable key list of a subclass and
initialized that key list from a serialized key list.
This is needed because we cannot make the key list in this
class protected for security reasons. | public synchronized int | numberOfKeys() Gets the number of keys in the store. |
PublicKeyStore | protected PublicKeyStore()(Code) | | Constructor for subclasses.
|
PublicKeyStore | public PublicKeyStore(InputStream in) throws IOException(Code) | | Constructs a read-only keystore from a serialized keystore created
by
PublicKeyStoreBuilder .
Parameters: in - stream to read a keystore serialized byPublicKeyStoreBuilder.serialize(OutputStream) from exception: IOException - if the key storage was corrupted |
PublicKeyStore | public PublicKeyStore(InputStream in, Vector sharedKeyList) throws IOException(Code) | | Constructs a read-only keystore from a serialized keystore created
by
PublicKeyStoreBuilder .
Parameters: in - stream to read a keystore serialized byPublicKeyStoreBuilder.serialize(OutputStream) from Parameters: sharedKeyList - key list of a subclass exception: IOException - if the key storage was corrupted |
findKeys | public synchronized Vector findKeys(String owner)(Code) | | Finds a CAs Public keys based on the distinguished name.
Parameters: owner - distinguished name of keys' owner public key information of the keys |
getKey | public synchronized PublicKeyInfo getKey(int number)(Code) | | Gets a by number from the keystore. 0 is the first key.
Parameters: number - number of key public key information of the key exception: ArrayIndexOutOfBoundsException - if an invalid number wasgiven. |
initPublicKeyStore | protected void initPublicKeyStore(Vector sharedKeyList)(Code) | | Lets this class work with a writeable key list of a subclass.
This is needed because we cannot make the key list in this
class protected for security reasons. This method will only
work if the PublicKeyStore has not been initialized.
Parameters: sharedKeyList - key list of a subclass |
initPublicKeyStore | protected void initPublicKeyStore(InputStream in, Vector sharedKeyList) throws IOException(Code) | | Lets this class work with a writeable key list of a subclass and
initialized that key list from a serialized key list.
This is needed because we cannot make the key list in this
class protected for security reasons. This method will only
work if the PublicKeyStore has not been initialized.
Parameters: sharedKeyList - key list of a subclass Parameters: in - stream to read the serialized keystore exception: IOException - if the key storage was corrupted |
numberOfKeys | public synchronized int numberOfKeys()(Code) | | Gets the number of keys in the store.
number of keys in the keystore |
|
|
|