Project JXTA

net.jxta.impl.membership.pse
Class URIKeyStoreManager

java.lang.Object
  extended by net.jxta.impl.membership.pse.URIKeyStoreManager
All Implemented Interfaces:
KeyStoreManager

public class URIKeyStoreManager
extends Object
implements KeyStoreManager

Manages a Keystore located at at URI. This version precludes KeyStores which are built from multiple URIs.


Constructor Summary
URIKeyStoreManager(String type, String provider, URI location)
          Default constructor.
 
Method Summary
 void createKeyStore(char[] store_password)
          
 void eraseKeyStore()
          
 boolean isInitialized()
          
 boolean isInitialized(char[] store_password)
          
 KeyStore loadKeyStore(char[] password)
          
 void saveKeyStore(KeyStore store, char[] password)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIKeyStoreManager

public URIKeyStoreManager(String type,
                          String provider,
                          URI location)
                   throws NoSuchProviderException,
                          KeyStoreException
Default constructor.

Throws:
NoSuchProviderException
KeyStoreException
Method Detail

isInitialized

public boolean isInitialized()

Specified by:
isInitialized in interface KeyStoreManager

isInitialized

public boolean isInitialized(char[] store_password)

Specified by:
isInitialized in interface KeyStoreManager

createKeyStore

public void createKeyStore(char[] store_password)
                    throws KeyStoreException,
                           IOException

Specified by:
createKeyStore in interface KeyStoreManager
Throws:
KeyStoreException
IOException

loadKeyStore

public KeyStore loadKeyStore(char[] password)
                      throws KeyStoreException,
                             IOException

Specified by:
loadKeyStore in interface KeyStoreManager
Throws:
KeyStoreException
IOException

saveKeyStore

public void saveKeyStore(KeyStore store,
                         char[] password)
                  throws KeyStoreException,
                         IOException

Specified by:
saveKeyStore in interface KeyStoreManager
Throws:
KeyStoreException
IOException

eraseKeyStore

public void eraseKeyStore()

Specified by:
eraseKeyStore in interface KeyStoreManager

JXTA J2SE