|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KeyStoreManager
Abstracts the management of KeyStores. This is commonly used to abstract the location of the KeyStore and the details of creating, loading, saving and deleting the KeyStore.
Applications should not assume that accesses to KeyStoreManager are thread safe. All access to the KeyStoreManager should be externally synchronized on the KeyStoreManager object.
Method Summary | |
---|---|
void |
createKeyStore(char[] password)
Create the KeyStore using the specified KeyStore passphrase. |
void |
eraseKeyStore()
Erase the KeyStore. |
boolean |
isInitialized()
Returns true if the KeyStore has been initialized (created). |
boolean |
isInitialized(char[] password)
Returns true if the Keystore has been initialized (created). |
KeyStore |
loadKeyStore(char[] password)
Load the KeyStore. |
void |
saveKeyStore(KeyStore store,
char[] password)
Save the provided KeyStore using the specified KeyStore passphrase. |
Method Detail |
---|
boolean isInitialized() throws KeyStoreException
KeyStoreException
- If the KeyStore is protected by a store
password that has not been set.boolean isInitialized(char[] password) throws KeyStoreException
password
- The KeyStore passphrase.
KeyStoreException
- If an incorrect KeyStore password is provided.void createKeyStore(char[] password) throws IOException, KeyStoreException
password
- The KeyStore passphrase.
KeyStoreException
- If an incorrect KeyStore passphrase is provided.
IOException
- If there is a problem creating the KeyStore.KeyStore loadKeyStore(char[] password) throws IOException, KeyStoreException
password
- The KeyStore passphrase.
KeyStoreException
- If an incorrect KeyStore password is provided.
IOException
- If there is a problem loading the KeyStore.void saveKeyStore(KeyStore store, char[] password) throws IOException, KeyStoreException
store
- The KeyStore to save.password
- The encryption passphrase for the keystore.
IOException
- Thrown for errors writing the keystore.
KeyStoreException
- Thrown for errors with the provided key or key store.void eraseKeyStore() throws IOException
IOException
- If there is a problem erasing the KeyStore or the
KeyStore cannot be erased.
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |