org.dcm4che2.audit.util
Class SSLUtils

java.lang.Object
  extended by org.dcm4che2.audit.util.SSLUtils

public class SSLUtils
extends java.lang.Object

Since:
Dec 1, 2009
Version:
$Revision$ $Date$
Author:
Gunter Zeilinger

Constructor Summary
SSLUtils()
           
 
Method Summary
static javax.net.ssl.SSLContext getSSLContext(java.security.KeyStore keyStore, char[] password, java.security.KeyStore trustStore, java.security.SecureRandom random)
           
static java.security.KeyStore loadKeyStore(java.io.File file, char[] password, java.lang.String type)
           
static java.security.KeyStore loadKeyStore(java.io.InputStream in, char[] password, java.lang.String type)
           
static java.security.KeyStore loadKeyStore(java.lang.String fileName, char[] password, java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLUtils

public SSLUtils()
Method Detail

getSSLContext

public static javax.net.ssl.SSLContext getSSLContext(java.security.KeyStore keyStore,
                                                     char[] password,
                                                     java.security.KeyStore trustStore,
                                                     java.security.SecureRandom random)
                                              throws java.security.NoSuchAlgorithmException,
                                                     java.security.KeyManagementException,
                                                     java.security.UnrecoverableKeyException,
                                                     java.security.KeyStoreException
Throws:
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
java.security.UnrecoverableKeyException
java.security.KeyStoreException

loadKeyStore

public static java.security.KeyStore loadKeyStore(java.lang.String fileName,
                                                  char[] password,
                                                  java.lang.String type)
                                           throws java.security.KeyStoreException,
                                                  java.security.NoSuchAlgorithmException,
                                                  java.security.cert.CertificateException,
                                                  java.io.IOException
Throws:
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.io.IOException

loadKeyStore

public static java.security.KeyStore loadKeyStore(java.io.File file,
                                                  char[] password,
                                                  java.lang.String type)
                                           throws java.security.KeyStoreException,
                                                  java.security.NoSuchAlgorithmException,
                                                  java.security.cert.CertificateException,
                                                  java.io.IOException
Throws:
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.io.IOException

loadKeyStore

public static java.security.KeyStore loadKeyStore(java.io.InputStream in,
                                                  char[] password,
                                                  java.lang.String type)
                                           throws java.security.KeyStoreException,
                                                  java.security.NoSuchAlgorithmException,
                                                  java.security.cert.CertificateException,
                                                  java.io.IOException
Throws:
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.io.IOException


Copyright © 2011 dcm4che. All Rights Reserved.