| |
|
| java.lang.Object com.sun.midp.publickeystore.PublicKeyStore com.sun.midp.publickeystore.PublicKeyStoreBuilderBase
PublicKeyStoreBuilderBase | public class PublicKeyStoreBuilderBase extends PublicKeyStore (Code) | | A read-write serializable
PublicKeyStore . This class is the base
for
PublicKeyStoreBuilder , and does not have any methods that
depend on any Microediton specific classes so it can be used alone in a
tool written with Standard Edition Java.
|
Method Summary | |
public synchronized void | addKey(PublicKeyInfo keyInfo) Adds a public key. | public void | deleteKey(int number) Deletes a public key from this keystore by number. | public void | serialize(OutputStream out) Serializes the keystore to the given stream. | public synchronized void | updateKey(int number, PublicKeyInfo newKeyInfo) Updates all of an key's information except for the security domain. |
PublicKeyStoreBuilderBase | public PublicKeyStoreBuilderBase()(Code) | | Constructs an empty read-write keystore.
|
PublicKeyStoreBuilderBase | public PublicKeyStoreBuilderBase(Vector sharedKeyList)(Code) | | Constructs an read-write keystore.
Parameters: sharedKeyList - shared key list |
addKey | public synchronized void addKey(PublicKeyInfo keyInfo)(Code) | | Adds a public key.
Parameters: keyInfo - the key to add |
deleteKey | public void deleteKey(int number)(Code) | | Deletes a public key from this keystore by number.
Parameters: number - number of the key with 0 being the first. exception: ArrayIndexOutOfBoundsException - if an invalid number wasgiven. |
serialize | public void serialize(OutputStream out) throws IOException(Code) | | Serializes the keystore to the given stream.
Parameters: out - stream to serialize the keystore to exception: IOException - is thrown, if an I/O error occurs |
updateKey | public synchronized void updateKey(int number, PublicKeyInfo newKeyInfo)(Code) | | Updates all of an key's information except for the security domain.
information in the store.
Parameters: number - key number of key 0 being the first Parameters: newKeyInfo - new key information exception: ArrayIndexOutOfBoundsException - if an invalid number wasgiven. |
|
|
|