org.dcm4che.util
Class SSLContextAdapter

java.lang.Object
  extended by org.dcm4che.util.SSLContextAdapter

public abstract class SSLContextAdapter
extends java.lang.Object

Since:
June, 2002
Version:
$Revision: 4105 $ $Date: 2007-04-16 11:42:37 +0200 (Mo, 16 Apr 2007) $
Author:
gunter zeilinger

Field Summary
static java.lang.String SSL_RSA_WITH_3DES_EDE_CBC_SHA
          Description of the Field
static java.lang.String SSL_RSA_WITH_NULL_SHA
          Description of the Field
 
Constructor Summary
SSLContextAdapter()
           
 
Method Summary
abstract  void addHandshakeCompletedListener(javax.net.ssl.HandshakeCompletedListener listener)
          Adds a feature to the HandshakeCompletedListener attribute of the SSLContextAdapter object
abstract  void addHandshakeFailedListener(HandshakeFailedListener listener)
          Adds a feature to the HandshakeFailedListener attribute of the SSLContextAdapter object
abstract  java.lang.String[] getEnabledProtocols()
          Gets the enabledProtocols attribute of the SSLContextAdapter object
static SSLContextAdapter getInstance()
          Gets the instance attribute of the SSLContextAdapter class
abstract  javax.net.ssl.KeyManager[] getKeyManagers()
          Gets the keyManagers attribute of the SSLContextAdapter object
abstract  javax.net.ServerSocketFactory getServerSocketFactory(java.lang.String[] cipherSuites)
          Gets the serverSocketFactory attribute of the SSLContextAdapter object
abstract  javax.net.SocketFactory getSocketFactory(java.lang.String[] cipherSuites)
          Gets the socketFactory attribute of the SSLContextAdapter object
abstract  javax.net.ssl.SSLContext getSSLContext()
          Gets the sSLContext attribute of the SSLContextAdapter object
abstract  java.lang.String[] getSupportedCipherSuites()
          Gets the supportedCipherSuites attribute of the SSLContextAdapter object
abstract  java.lang.String[] getSupportedProtocols()
          Gets the supportedProtocols attribute of the SSLContextAdapter object
abstract  javax.net.ssl.TrustManager[] getTrustManagers()
          Gets the trustManagers attribute of the SSLContextAdapter object
abstract  void init()
          Description of the Method
abstract  boolean isNeedClientAuth()
          Gets the needClientAuth attribute of the SSLContextAdapter object
abstract  java.security.KeyStore loadKeyStore(java.io.File file, char[] password)
          Description of the Method
abstract  java.security.KeyStore loadKeyStore(java.io.InputStream in, char[] password, java.lang.String type)
          Description of the Method
abstract  java.security.KeyStore loadKeyStore(java.lang.String url, char[] password)
           
abstract  java.security.KeyStore loadKeyStore(java.net.URL url, char[] password)
          Description of the Method
abstract  void removeHandshakeCompletedListener(javax.net.ssl.HandshakeCompletedListener listener)
          Description of the Method
abstract  void removeHandshakeFailedListener(HandshakeFailedListener listener)
          Description of the Method
abstract  void seedRandom(long seed)
          Description of the Method
abstract  void setEnabledProtocols(java.lang.String[] protocols)
          Sets the enabledProtocols attribute of the SSLContextAdapter object
abstract  void setKey(java.security.KeyStore key, char[] password)
          Sets the key attribute of the SSLContextAdapter object
abstract  void setNeedClientAuth(boolean needClientAuth)
          Sets the needClientAuth attribute of the SSLContextAdapter object
abstract  void setTrust(java.security.KeyStore cacerts)
          Sets the trust attribute of the SSLContextAdapter object
abstract  void startHandshake(javax.net.ssl.SSLSocket s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SSL_RSA_WITH_NULL_SHA

public static final java.lang.String SSL_RSA_WITH_NULL_SHA
Description of the Field

See Also:
Constant Field Values

SSL_RSA_WITH_3DES_EDE_CBC_SHA

public static final java.lang.String SSL_RSA_WITH_3DES_EDE_CBC_SHA
Description of the Field

See Also:
Constant Field Values
Constructor Detail

SSLContextAdapter

public SSLContextAdapter()
Method Detail

getInstance

public static SSLContextAdapter getInstance()
Gets the instance attribute of the SSLContextAdapter class

Returns:
The instance value

getSSLContext

public abstract javax.net.ssl.SSLContext getSSLContext()
                                                throws java.security.GeneralSecurityException
Gets the sSLContext attribute of the SSLContextAdapter object

Returns:
The sSLContext value
Throws:
java.security.GeneralSecurityException

getSupportedCipherSuites

public abstract java.lang.String[] getSupportedCipherSuites()
Gets the supportedCipherSuites attribute of the SSLContextAdapter object

Returns:
The supportedCipherSuites value

setEnabledProtocols

public abstract void setEnabledProtocols(java.lang.String[] protocols)
Sets the enabledProtocols attribute of the SSLContextAdapter object

Parameters:
protocols - The new enabledProtocols value

addHandshakeCompletedListener

public abstract void addHandshakeCompletedListener(javax.net.ssl.HandshakeCompletedListener listener)
Adds a feature to the HandshakeCompletedListener attribute of the SSLContextAdapter object

Parameters:
listener - The feature to be added to the HandshakeCompletedListener attribute

addHandshakeFailedListener

public abstract void addHandshakeFailedListener(HandshakeFailedListener listener)
Adds a feature to the HandshakeFailedListener attribute of the SSLContextAdapter object

Parameters:
listener - The feature to be added to the HandshakeFailedListener attribute

removeHandshakeCompletedListener

public abstract void removeHandshakeCompletedListener(javax.net.ssl.HandshakeCompletedListener listener)
Description of the Method

Parameters:
listener - Description of the Parameter

removeHandshakeFailedListener

public abstract void removeHandshakeFailedListener(HandshakeFailedListener listener)
Description of the Method

Parameters:
listener - Description of the Parameter

getEnabledProtocols

public abstract java.lang.String[] getEnabledProtocols()
Gets the enabledProtocols attribute of the SSLContextAdapter object

Returns:
The enabledProtocols value

getSupportedProtocols

public abstract java.lang.String[] getSupportedProtocols()
Gets the supportedProtocols attribute of the SSLContextAdapter object

Returns:
The supportedProtocols value

setNeedClientAuth

public abstract void setNeedClientAuth(boolean needClientAuth)
Sets the needClientAuth attribute of the SSLContextAdapter object

Parameters:
needClientAuth - The new needClientAuth value

isNeedClientAuth

public abstract boolean isNeedClientAuth()
Gets the needClientAuth attribute of the SSLContextAdapter object

Returns:
The needClientAuth value

seedRandom

public abstract void seedRandom(long seed)
Description of the Method

Parameters:
seed - Description of the Parameter

loadKeyStore

public abstract java.security.KeyStore loadKeyStore(java.io.InputStream in,
                                                    char[] password,
                                                    java.lang.String type)
                                             throws java.security.GeneralSecurityException,
                                                    java.io.IOException
Description of the Method

Parameters:
in - Description of the Parameter
password - Description of the Parameter
type - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.security.GeneralSecurityException - Description of the Exception
java.io.IOException - Description of the Exception

loadKeyStore

public abstract java.security.KeyStore loadKeyStore(java.io.File file,
                                                    char[] password)
                                             throws java.security.GeneralSecurityException,
                                                    java.io.IOException
Description of the Method

Parameters:
file - Description of the Parameter
password - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.security.GeneralSecurityException - Description of the Exception
java.io.IOException - Description of the Exception

loadKeyStore

public abstract java.security.KeyStore loadKeyStore(java.net.URL url,
                                                    char[] password)
                                             throws java.security.GeneralSecurityException,
                                                    java.io.IOException
Description of the Method

Parameters:
url - Description of the Parameter
password - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.security.GeneralSecurityException - Description of the Exception
java.io.IOException - Description of the Exception

loadKeyStore

public abstract java.security.KeyStore loadKeyStore(java.lang.String url,
                                                    char[] password)
                                             throws java.security.GeneralSecurityException,
                                                    java.io.IOException
Throws:
java.security.GeneralSecurityException
java.io.IOException

setKey

public abstract void setKey(java.security.KeyStore key,
                            char[] password)
                     throws java.security.GeneralSecurityException
Sets the key attribute of the SSLContextAdapter object

Parameters:
key - The new key value
password - The new key value
Throws:
java.security.GeneralSecurityException - Description of the Exception

getKeyManagers

public abstract javax.net.ssl.KeyManager[] getKeyManagers()
Gets the keyManagers attribute of the SSLContextAdapter object

Returns:
The keyManagers value

setTrust

public abstract void setTrust(java.security.KeyStore cacerts)
                       throws java.security.GeneralSecurityException
Sets the trust attribute of the SSLContextAdapter object

Parameters:
cacerts - The new trust value
Throws:
java.security.GeneralSecurityException - Description of the Exception

getTrustManagers

public abstract javax.net.ssl.TrustManager[] getTrustManagers()
Gets the trustManagers attribute of the SSLContextAdapter object

Returns:
The trustManagers value

init

public abstract void init()
                   throws java.security.GeneralSecurityException
Description of the Method

Throws:
java.security.GeneralSecurityException - Description of the Exception

getSocketFactory

public abstract javax.net.SocketFactory getSocketFactory(java.lang.String[] cipherSuites)
                                                  throws java.security.GeneralSecurityException
Gets the socketFactory attribute of the SSLContextAdapter object

Parameters:
cipherSuites - Description of the Parameter
Returns:
The socketFactory value
Throws:
java.security.GeneralSecurityException

getServerSocketFactory

public abstract javax.net.ServerSocketFactory getServerSocketFactory(java.lang.String[] cipherSuites)
                                                              throws java.security.GeneralSecurityException
Gets the serverSocketFactory attribute of the SSLContextAdapter object

Parameters:
cipherSuites - Description of the Parameter
Returns:
The serverSocketFactory value
Throws:
java.security.GeneralSecurityException

startHandshake

public abstract void startHandshake(javax.net.ssl.SSLSocket s)
                             throws java.io.IOException
Throws:
java.io.IOException