|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.vfs.QServerSocket
com.caucho.vfs.OpenSSLFactory
public class OpenSSLFactory
Abstract socket to handle both normal sockets and bin/resin sockets.
| Constructor Summary | |
|---|---|
OpenSSLFactory()
Creates a ServerSocket factory without initializing it. |
|
| Method Summary | |
|---|---|
boolean |
accept(QSocket socket)
|
QServerSocket |
bind(QServerSocket ss)
Creates the server socket. |
void |
close()
|
QServerSocket |
create(java.net.InetAddress addr,
int port)
Creates the server socket. |
QSocket |
createSocket()
|
java.lang.String |
getCACertificateFile()
Returns the caCertificateFile. |
java.lang.String |
getCACertificatePath()
Returns the caCertificatePath. |
java.lang.String |
getCARevocationFile()
Returns the caRevocationFile. |
java.lang.String |
getCARevocationPath()
Returns the caRevocationPath. |
java.lang.String |
getCertificateChainFile()
Returns the certificateChainFile |
java.lang.String |
getCertificateFile()
Returns the certificate file. |
java.lang.String |
getCertificateKeyFile()
Returns the key file. |
java.lang.String |
getCipherSuite()
Returns the cipher suite |
java.lang.String |
getCryptoDevice()
Returns the crypto-device |
java.net.InetAddress |
getLocalAddress()
|
int |
getLocalPort()
|
java.lang.String |
getPassword()
Returns the key file. |
boolean |
getUncleanShutdown()
Returns the unclean shutdown |
java.lang.String |
getVerifyClient()
Returns the verify client |
void |
init()
Initialize |
void |
initConfig()
|
boolean |
isTcpNoDelay()
|
void |
listen(int backlog)
Sets the socket's listen backlog. |
void |
setCACertificateFile(Path caCertificateFile)
Sets the caCertificateFile. |
void |
setCACertificatePath(Path caCertificatePath)
Sets the caCertificatePath. |
void |
setCARevocationFile(Path caRevocationFile)
Sets the caRevocationFile. |
void |
setCARevocationPath(Path caRevocationPath)
Sets the caRevocationPath. |
void |
setCertificateChainFile(Path certificateChainFile)
Sets the certificateChainFile. |
void |
setCertificateFile(Path certificateFile)
Sets the certificate file. |
void |
setCertificateKeyFile(Path keyFile)
Sets the key file. |
void |
setCipherSuite(java.lang.String cipherSuite)
Sets the cipher-suite |
void |
setConnectionSocketTimeout(int ms)
Sets the socket timeout for connections. |
void |
setCryptoDevice(java.lang.String cryptoDevice)
Sets the crypto-device |
void |
setPassword(java.lang.String password)
Sets the password. |
void |
setProtocol(java.lang.String protocol)
Sets the protocol: +SSLv3 |
void |
setSessionCache(boolean enable)
Enable the session cache |
void |
setSessionCacheTimeout(Period period)
Sets the session cache timeout |
void |
setTcpNoDelay(boolean delay)
|
void |
setUncleanShutdown(boolean uncleanShutdown)
Sets the unclean-shutdown |
void |
setVerifyClient(java.lang.String verifyClient)
Sets the verifyClient. |
void |
setVerifyDepth(int verifyDepth)
Sets the verify depth |
| Methods inherited from class com.caucho.vfs.QServerSocket |
|---|
getSelector, getSystemFD, isClosed, isJni, isTcpKeepalive, setSaveOnExec, setTcpKeepalive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenSSLFactory()
| Method Detail |
|---|
public void setCertificateFile(Path certificateFile)
public java.lang.String getCertificateFile()
public void setCertificateKeyFile(Path keyFile)
public java.lang.String getCertificateKeyFile()
public void setCertificateChainFile(Path certificateChainFile)
public java.lang.String getCertificateChainFile()
public void setCACertificatePath(Path caCertificatePath)
public java.lang.String getCACertificatePath()
public void setCACertificateFile(Path caCertificateFile)
public java.lang.String getCACertificateFile()
public void setCARevocationPath(Path caRevocationPath)
public java.lang.String getCARevocationPath()
public void setCARevocationFile(Path caRevocationFile)
public java.lang.String getCARevocationFile()
public void setCipherSuite(java.lang.String cipherSuite)
public java.lang.String getCipherSuite()
public void setCryptoDevice(java.lang.String cryptoDevice)
public java.lang.String getCryptoDevice()
public void setPassword(java.lang.String password)
public java.lang.String getPassword()
public void setVerifyClient(java.lang.String verifyClient)
throws ConfigException
ConfigExceptionpublic java.lang.String getVerifyClient()
public void setVerifyDepth(int verifyDepth)
public void setUncleanShutdown(boolean uncleanShutdown)
public boolean getUncleanShutdown()
public void setSessionCache(boolean enable)
public void setSessionCacheTimeout(Period period)
public void setProtocol(java.lang.String protocol)
throws ConfigException
ConfigException
@PostConstruct
public void init()
throws ConfigException
ConfigException
public QServerSocket create(java.net.InetAddress addr,
int port)
throws ConfigException,
java.io.IOException
create in interface SSLFactoryConfigException
java.io.IOException
public QServerSocket bind(QServerSocket ss)
throws ConfigException,
java.io.IOException
bind in interface SSLFactoryConfigException
java.io.IOExceptionpublic void setTcpNoDelay(boolean delay)
setTcpNoDelay in class QServerSocketpublic boolean isTcpNoDelay()
isTcpNoDelay in class QServerSocketpublic void setConnectionSocketTimeout(int ms)
setConnectionSocketTimeout in class QServerSocketpublic void listen(int backlog)
listen in class QServerSocket
public boolean accept(QSocket socket)
throws java.io.IOException
accept in class QServerSocketjava.io.IOException
public QSocket createSocket()
throws java.io.IOException
createSocket in class QServerSocketjava.io.IOExceptionpublic java.net.InetAddress getLocalAddress()
getLocalAddress in class QServerSocketpublic int getLocalPort()
getLocalPort in class QServerSocket
public void close()
throws java.io.IOException
close in class QServerSocketjava.io.IOException
public void initConfig()
throws ConfigException
ConfigException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||