Remote System Explorer DataStore
Release 3.0

org.eclipse.dstore.core.util.ssl
Class DStoreKeyStore

java.lang.Object
  extended by org.eclipse.dstore.core.util.ssl.DStoreKeyStore

public class DStoreKeyStore
extends Object

This class is used for managing the DStore keystore for use with the DStore communication framework.


Constructor Summary
DStoreKeyStore()
           
 
Method Summary
static void addCertificateToKeyStore(KeyStore ks, Certificate cert, String alias)
           
static DStoreKeyStore getInstance()
           
static KeyStore getKeyStore(String filePath, String password)
           
static Certificate loadCertificate(String certFilename)
           
static KeyStore loadKeyStore(String pathname, String password)
           
static void persistKeyStore(KeyStore ks, String pathname, String password)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DStoreKeyStore

public DStoreKeyStore()
Method Detail

getInstance

public static DStoreKeyStore getInstance()

getKeyStore

public static KeyStore getKeyStore(String filePath,
                                   String password)
                            throws KeyStoreException,
                                   NoSuchAlgorithmException,
                                   CertificateException,
                                   IOException,
                                   NoSuchProviderException
Throws:
KeyStoreException
NoSuchAlgorithmException
CertificateException
IOException
NoSuchProviderException

loadKeyStore

public static KeyStore loadKeyStore(String pathname,
                                    String password)
                             throws KeyStoreException,
                                    NoSuchAlgorithmException,
                                    CertificateException,
                                    IOException,
                                    NoSuchProviderException
Throws:
KeyStoreException
NoSuchAlgorithmException
CertificateException
IOException
NoSuchProviderException

loadCertificate

public static Certificate loadCertificate(String certFilename)
                                   throws CertificateException,
                                          FileNotFoundException
Throws:
CertificateException
FileNotFoundException

addCertificateToKeyStore

public static void addCertificateToKeyStore(KeyStore ks,
                                            Certificate cert,
                                            String alias)
                                     throws KeyStoreException
Throws:
KeyStoreException

persistKeyStore

public static void persistKeyStore(KeyStore ks,
                                   String pathname,
                                   String password)
                            throws KeyStoreException,
                                   FileNotFoundException,
                                   NoSuchAlgorithmException,
                                   CertificateException,
                                   IOException
Throws:
KeyStoreException
FileNotFoundException
NoSuchAlgorithmException
CertificateException
IOException

Remote System Explorer DataStore
Release 3.0

Guidelines for using DataStore APIs.