Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

net.jxta.impl.membership.pse
Class CMKeyStoreManager  view CMKeyStoreManager download CMKeyStoreManager.java

java.lang.Object
  extended bynet.jxta.impl.membership.pse.CMKeyStoreManager
All Implemented Interfaces:
KeyStoreManager

public class CMKeyStoreManager
extends java.lang.Object
implements KeyStoreManager

Manages a Keystore located within the JXTA CM.


Field Summary
private static java.lang.String DEFAULT_KEYSTORE_TYPE
           
private  net.jxta.impl.cm.Cm keystore_cm
          The file where the keystore lives
private  net.jxta.id.ID keystore_location
          The file where the keystore lives
private  java.lang.String keystore_provider
          The keystore type
private  java.lang.String keystore_type
          The keystore type
private static org.apache.log4j.Logger LOG
          Log4J Logger
 
Constructor Summary
CMKeyStoreManager(java.lang.String type, java.lang.String provider, net.jxta.peergroup.PeerGroup group, net.jxta.id.ID location)
          Default constructor.
 
Method Summary
 void createKeyStore(char[] store_password)
          null
 void eraseKeyStore()
          null
 boolean isInitialized()
          null
 boolean isInitialized(char[] store_password)
          null
 java.security.KeyStore loadKeyStore(char[] password)
          Return the keystore instance we are using.
 void saveKeyStore(java.security.KeyStore store, char[] password)
          Return the keystore instance we are using.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final transient org.apache.log4j.Logger LOG
Log4J Logger


DEFAULT_KEYSTORE_TYPE

private static final java.lang.String DEFAULT_KEYSTORE_TYPE
See Also:
Constant Field Values

keystore_type

private final java.lang.String keystore_type
The keystore type


keystore_provider

private final java.lang.String keystore_provider
The keystore type


keystore_cm

private final net.jxta.impl.cm.Cm keystore_cm
The file where the keystore lives


keystore_location

private final net.jxta.id.ID keystore_location
The file where the keystore lives

Constructor Detail

CMKeyStoreManager

public CMKeyStoreManager(java.lang.String type,
                         java.lang.String provider,
                         net.jxta.peergroup.PeerGroup group,
                         net.jxta.id.ID location)
                  throws java.security.NoSuchProviderException,
                         java.security.KeyStoreException
Default constructor.

Method Detail

isInitialized

public boolean isInitialized()
null

Specified by:
isInitialized in interface KeyStoreManager

isInitialized

public boolean isInitialized(char[] store_password)
null

Specified by:
isInitialized in interface KeyStoreManager

createKeyStore

public void createKeyStore(char[] store_password)
                    throws java.security.KeyStoreException,
                           java.io.IOException
null

Specified by:
createKeyStore in interface KeyStoreManager

loadKeyStore

public java.security.KeyStore loadKeyStore(char[] password)
                                    throws java.security.KeyStoreException,
                                           java.io.IOException
Return the keystore instance we are using. i

Specified by:
loadKeyStore in interface KeyStoreManager

saveKeyStore

public void saveKeyStore(java.security.KeyStore store,
                         char[] password)
                  throws java.io.IOException,
                         java.security.KeyStoreException
Return the keystore instance we are using. includes compatibility code to force using Bouncy Castle for < JDK 1.5. The JCE 1.4.X PCKS#12 keystore is read only.

Specified by:
saveKeyStore in interface KeyStoreManager

eraseKeyStore

public void eraseKeyStore()
                   throws java.io.IOException
null

Specified by:
eraseKeyStore in interface KeyStoreManager