org.eclipse.dstore.core.util.ssl
Class DStoreKeyStore
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DStoreKeyStore
public DStoreKeyStore()
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
Guidelines for using DataStore APIs.