Remote System Explorer DataStore
Release 3.3

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

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

public class DStoreKeyStore
extends java.lang.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(java.security.KeyStore ks, java.security.cert.Certificate cert, java.lang.String alias)
           
static DStoreKeyStore getInstance()
           
static java.security.KeyStore getKeyStore(java.lang.String filePath, java.lang.String password)
           
static java.security.cert.Certificate loadCertificate(java.lang.String certFilename)
           
static java.security.KeyStore loadKeyStore(java.lang.String pathname, java.lang.String password)
           
static void persistKeyStore(java.security.KeyStore ks, java.lang.String pathname, java.lang.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 java.security.KeyStore getKeyStore(java.lang.String filePath,
                                                 java.lang.String password)
                                          throws java.security.KeyStoreException,
                                                 java.security.NoSuchAlgorithmException,
                                                 java.security.cert.CertificateException,
                                                 java.io.IOException,
                                                 java.security.NoSuchProviderException
Throws:
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.io.IOException
java.security.NoSuchProviderException

loadKeyStore

public static java.security.KeyStore loadKeyStore(java.lang.String pathname,
                                                  java.lang.String password)
                                           throws java.security.KeyStoreException,
                                                  java.security.NoSuchAlgorithmException,
                                                  java.security.cert.CertificateException,
                                                  java.io.IOException,
                                                  java.security.NoSuchProviderException
Throws:
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.io.IOException
java.security.NoSuchProviderException

loadCertificate

public static java.security.cert.Certificate loadCertificate(java.lang.String certFilename)
                                                      throws java.security.cert.CertificateException,
                                                             java.io.FileNotFoundException
Throws:
java.security.cert.CertificateException
java.io.FileNotFoundException

addCertificateToKeyStore

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

persistKeyStore

public static void persistKeyStore(java.security.KeyStore ks,
                                   java.lang.String pathname,
                                   java.lang.String password)
                            throws java.security.KeyStoreException,
                                   java.io.FileNotFoundException,
                                   java.security.NoSuchAlgorithmException,
                                   java.security.cert.CertificateException,
                                   java.io.IOException
Throws:
java.security.KeyStoreException
java.io.FileNotFoundException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.io.IOException

Remote System Explorer DataStore
Release 3.3

Copyright (c) IBM Corporation and others 2000, 2011. All Rights Reserved.