com.caucho.vfs
Class JsseSSLFactory

java.lang.Object
  extended by com.caucho.vfs.JsseSSLFactory
All Implemented Interfaces:
SSLFactory

public class JsseSSLFactory
extends java.lang.Object
implements SSLFactory

Abstract socket to handle both normal sockets and bin/resin sockets.


Constructor Summary
JsseSSLFactory()
          Creates a ServerSocket factory without initializing it.
 
Method Summary
 QServerSocket bind(QServerSocket ss)
          Creates the SSL ServerSocket.
 QServerSocket create(java.net.InetAddress host, int port)
          Creates the SSL ServerSocket.
 java.lang.String getAlias()
          Returns the alias.
 Path getKeyStoreFile()
          Returns the certificate file.
 java.lang.String getPassword()
          Returns the key file.
 java.lang.String getVerifyClient()
          Returns the key file.
 void init()
          Initialize
 void setAlias(java.lang.String alias)
          Sets the certificate alias
 void setCipherSuites(java.lang.String[] ciphers)
          Sets the enabled cipher suites
 void setCipherSuitesForbidden(java.lang.String[] ciphers)
          Sets the enabled cipher suites
 void setKeyManagerFactory(java.lang.String keyManagerFactory)
          Sets the key-manager-factory
 void setKeyStoreFile(Path keyStoreFile)
          Sets the key store
 void setKeyStoreType(java.lang.String keyStore)
          Sets the key-store
 void setPassword(java.lang.String password)
          Sets the password.
 void setProtocol(java.lang.String protocol)
          Sets the protocol
 void setSelfSignedCertificateName(java.lang.String name)
          Sets the self-signed certificate name
 void setSSLContext(java.lang.String sslContext)
          Sets the ssl-context
 void setVerifyClient(java.lang.String verifyClient)
          Sets the verifyClient.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsseSSLFactory

public JsseSSLFactory()
Creates a ServerSocket factory without initializing it.

Method Detail

setCipherSuites

public void setCipherSuites(java.lang.String[] ciphers)
Sets the enabled cipher suites


setCipherSuitesForbidden

public void setCipherSuitesForbidden(java.lang.String[] ciphers)
Sets the enabled cipher suites


setKeyStoreFile

public void setKeyStoreFile(Path keyStoreFile)
Sets the key store


getKeyStoreFile

public Path getKeyStoreFile()
Returns the certificate file.


setPassword

public void setPassword(java.lang.String password)
Sets the password.


getPassword

public java.lang.String getPassword()
Returns the key file.


setAlias

public void setAlias(java.lang.String alias)
Sets the certificate alias


getAlias

public java.lang.String getAlias()
Returns the alias.


setVerifyClient

public void setVerifyClient(java.lang.String verifyClient)
Sets the verifyClient.


getVerifyClient

public java.lang.String getVerifyClient()
Returns the key file.


setKeyManagerFactory

public void setKeyManagerFactory(java.lang.String keyManagerFactory)
Sets the key-manager-factory


setSelfSignedCertificateName

public void setSelfSignedCertificateName(java.lang.String name)
Sets the self-signed certificate name


setSSLContext

public void setSSLContext(java.lang.String sslContext)
Sets the ssl-context


setKeyStoreType

public void setKeyStoreType(java.lang.String keyStore)
Sets the key-store


setProtocol

public void setProtocol(java.lang.String protocol)
Sets the protocol


init

@PostConstruct
public void init()
          throws ConfigException,
                 java.io.IOException,
                 java.security.GeneralSecurityException
Initialize

Throws:
ConfigException
java.io.IOException
java.security.GeneralSecurityException

create

public QServerSocket create(java.net.InetAddress host,
                            int port)
                     throws java.io.IOException,
                            java.security.GeneralSecurityException
Creates the SSL ServerSocket.

Specified by:
create in interface SSLFactory
Throws:
java.io.IOException
java.security.GeneralSecurityException

bind

public QServerSocket bind(QServerSocket ss)
                   throws ConfigException,
                          java.io.IOException,
                          java.security.GeneralSecurityException
Creates the SSL ServerSocket.

Specified by:
bind in interface SSLFactory
Throws:
ConfigException
java.io.IOException
java.security.GeneralSecurityException