|
JXTA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jxta.impl.membership.pse.CMKeyStoreManager
public class CMKeyStoreManager
Manages a Keystore located within the JXTA CM.
| Constructor Summary | |
|---|---|
CMKeyStoreManager(String type,
String provider,
PeerGroup group,
ID 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 CMKeyStoreManager(String type,
String provider,
PeerGroup group,
ID location)
throws NoSuchProviderException,
KeyStoreException
type - The keystore type to use. The current default is the "JKS"
keystore which is specified via null.provider - The JCE cryptographic provider to use for the keystore.
May also be null for the default provider.group - The peer group which will provide the CM.location - The ID under which the keystore will be stored in the
CM.
NoSuchProviderException - Thrown if the requested provider is not
available.
KeyStoreException - Thrown for errors getting a keystore of the
requested type.| Method Detail |
|---|
public boolean isInitialized()
isInitialized in interface KeyStoreManagerpublic boolean isInitialized(char[] store_password)
isInitialized in interface KeyStoreManagerstore_password - The KeyStore passphrase.
public void createKeyStore(char[] store_password)
throws KeyStoreException,
IOException
createKeyStore in interface KeyStoreManagerstore_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 KeyStoreManagerpassword - 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 IOException,
KeyStoreException
saveKeyStore in interface KeyStoreManagerstore - 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.
public void eraseKeyStore()
throws IOException
eraseKeyStore in interface KeyStoreManagerIOException - 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 | |||||||||