|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.membership.pse.FileKeyStoreManager
public class FileKeyStoreManager
Manages a Keystore located within a single File.
Constructor Summary | |
---|---|
FileKeyStoreManager(String type,
String provider,
File location)
Default constructor. |
Method Summary | |
---|---|
void |
createKeyStore(char[] store_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[] store_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. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileKeyStoreManager(String type, String provider, File location) throws NoSuchProviderException, KeyStoreException
type
- keystore typeprovider
- the providerlocation
- Store location
NoSuchProviderException
- if the security provider requested is not available in the environment.
KeyStoreException
- if a keystore error occursMethod Detail |
---|
public boolean isInitialized()
isInitialized
in interface KeyStoreManager
public boolean isInitialized(char[] store_password)
isInitialized
in interface KeyStoreManager
store_password
- The KeyStore passphrase.
public void createKeyStore(char[] store_password) throws KeyStoreException, IOException
createKeyStore
in interface KeyStoreManager
store_password
- The KeyStore passphrase.
KeyStoreException
- If an incorrect KeyStore passphrase is provided.
IOException
- If there is a problem creating the KeyStore.public KeyStore loadKeyStore(char[] password) throws KeyStoreException, IOException
loadKeyStore
in interface KeyStoreManager
password
- The KeyStore passphrase.
KeyStoreException
- If an incorrect KeyStore password is provided.
IOException
- If there is a problem loading the KeyStore.public void saveKeyStore(KeyStore store, char[] password) throws KeyStoreException, IOException
saveKeyStore
in interface KeyStoreManager
store
- The KeyStore to save.password
- The encryption passphrase for the keystore.
KeyStoreException
- Thrown for errors with the provided key or key store.
IOException
- Thrown for errors writing the keystore.public void eraseKeyStore() throws IOException
eraseKeyStore
in interface KeyStoreManager
IOException
- If there is a problem erasing the KeyStore or the
KeyStore cannot be erased.public String toString()
toString
in class Object
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |