Remote Systems
v6.4.1

com.ibm.etools.systems.dstore.core.util.ssl
Class DStoreKeyStore

java.lang.Object
  extended bycom.ibm.etools.systems.dstore.core.util.ssl.DStoreKeyStore

public class DStoreKeyStore
extends Object


Field Summary
static DStoreKeyStore _instance
           
 
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
 

Field Detail

_instance

public static DStoreKeyStore _instance
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 Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.