| Modifier and Type | Class and Description |
|---|---|
| private class | SslSocketConnector.CachedInfo
Simple bundle of information that is cached in the SSLSession. |
| public class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private String[] | _excludeCipherSuites
Default value for the cipher Suites. |
| private int | |
| private transient Password | |
| private String | _keystore
Default value for the keystore location path. |
| private String | |
| private boolean | _needClientAuth
Set to true if we require client certificate authentication. |
| private transient Password | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String | |
| private transient Password | |
| private String | |
| private String | |
| private boolean | _wantClientAuth
Set to true if we would like client certificate authentication. |
| pack-priv static final String | CACHED_INFO_ATTR
The name of the SSLSession attribute that will contain any cached information. |
| public static final String | DEFAULT_KEYSTORE
Default value for the keystore location path. |
| public static final String | KEYPASSWORD_PROPERTY
String name of key password property. |
| public static final String | PASSWORD_PROPERTY
String name of keystore password property. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected void | |
| protected SSLServerSocketFactory | |
| public void | customize(EndPoint
The Socket the request arrived on.
This should be a endpoint, Request SocketEndPoint wrapping a SSLSocket.HttpRequest to be customised. request)Overrides org. Implements org. |
| private static X509Certificate[] | Returns: the chain of java.security.cert.X509Certificates used to negotiate the SSL connection.Will be null if the chain is missing or empty. the javax.net.ssl.SSLSession to use as the source of the cert chain. sslSession)Return the chain of X509 certificates used to negotiate the SSL Session. |
| public String[] | |
| public int | |
| public String | |
| public String | |
| public boolean | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public boolean | |
| public boolean | |
| public boolean | isConfidential(Request
A request request)Overrides org. Implements org. |
| public boolean | isIntegral(Request
A request request)Overrides org. Implements org. |
| protected ServerSocket | Returns: A newsocket object bound to the supplied address with all other
settings as per the current configuration of this connector.The host, int port, int backlog)address that this server should listen onOverrides org. |
| public void | setAllowRenegotiate(boolean
true if re-negotiation is allowed (default false) allowRenegotiate)Set if SSL re-negotiation is allowed. |
| public void | |
| public void | setHandshakeTimeout(int
a non-zero value will be used to set so_timeout during
ssl handshakes. A zero value means the maxIdleTime is used instead. msec)Set the time in milliseconds for so_timeout during ssl handshaking |
| public void | |
| public void | |
| public void | |
| public void | setNeedClientAuth(boolean
true iff we require client certificate authentication. needClientAuth)Set the value of the needClientAuth property |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setWantClientAuth(boolean
true iff we want client certificate authentication. wantClientAuth)Set the value of the _wantClientAuth property. |
| _allowRenegotiate | back to summary |
|---|---|
| private boolean _allowRenegotiate | |
| _excludeCipherSuites | back to summary |
|---|---|
| private String[] _excludeCipherSuites Default value for the cipher Suites. | |
| _handshakeTimeout | back to summary |
|---|---|
| private int _handshakeTimeout | |
| _keyPassword | back to summary |
|---|---|
| private transient Password _keyPassword | |
| _keystore | back to summary |
|---|---|
| private String _keystore Default value for the keystore location path. | |
| _keystoreType | back to summary |
|---|---|
| private String _keystoreType | |
| _needClientAuth | back to summary |
|---|---|
| private boolean _needClientAuth Set to true if we require client certificate authentication. | |
| _password | back to summary |
|---|---|
| private transient Password _password | |
| _protocol | back to summary |
|---|---|
| private String _protocol | |
| _provider | back to summary |
|---|---|
| private String _provider | |
| _secureRandomAlgorithm | back to summary |
|---|---|
| private String _secureRandomAlgorithm | |
| _sslKeyManagerFactoryAlgorithm | back to summary |
|---|---|
| private String _sslKeyManagerFactoryAlgorithm | |
| _sslTrustManagerFactoryAlgorithm | back to summary |
|---|---|
| private String _sslTrustManagerFactoryAlgorithm | |
| _trustPassword | back to summary |
|---|---|
| private transient Password _trustPassword | |
| _truststore | back to summary |
|---|---|
| private String _truststore | |
| _truststoreType | back to summary |
|---|---|
| private String _truststoreType | |
| _wantClientAuth | back to summary |
|---|---|
| private boolean _wantClientAuth Set to true if we would like client certificate authentication. | |
| CACHED_INFO_ATTR | back to summary |
|---|---|
| pack-priv static final String CACHED_INFO_ATTR The name of the SSLSession attribute that will contain any cached information. | |
| DEFAULT_KEYSTORE | back to summary |
|---|---|
| public static final String DEFAULT_KEYSTORE Default value for the keystore location path. | |
| KEYPASSWORD_PROPERTY | back to summary |
|---|---|
| public static final String KEYPASSWORD_PROPERTY String name of key password property. | |
| PASSWORD_PROPERTY | back to summary |
|---|---|
| public static final String PASSWORD_PROPERTY String name of keystore password property. | |
| SslSocketConnector | back to summary |
|---|---|
| public SslSocketConnector() Constructor. | |
| accept | back to summary |
|---|---|
| public void accept(int acceptorID) throws IOException, InterruptedException Overrides org. | |
| configure | back to summary |
|---|---|
| protected void configure(Socket socket) throws IOException | |
| createFactory | back to summary |
|---|---|
| protected SSLServerSocketFactory createFactory() throws Exception | |
| customize | back to summary |
|---|---|
| public void customize(EndPoint endpoint, Request request) throws IOException Overrides org. Implements org. Allow the Listener a chance to customise the request. before the server does its stuff.
| |
| getCertChain | back to summary |
|---|---|
| private static X509Certificate[] getCertChain(SSLSession sslSession) Return the chain of X509 certificates used to negotiate the SSL Session. Note in order to do this we must convert a javax.security.cert.X509Certificate[], as used by JSSE to a java.security.cert.X509Certificate[],as required by the Servlet specs.
| |
| getExcludeCipherSuites | back to summary |
|---|---|
| public String[] getExcludeCipherSuites() | |
| getHandshakeTimeout | back to summary |
|---|---|
| public int getHandshakeTimeout() | |
| getKeystore | back to summary |
|---|---|
| public String getKeystore() | |
| getKeystoreType | back to summary |
|---|---|
| public String getKeystoreType() | |
| getNeedClientAuth | back to summary |
|---|---|
| public boolean getNeedClientAuth() | |
| getProtocol | back to summary |
|---|---|
| public String getProtocol() | |
| getProvider | back to summary |
|---|---|
| public String getProvider() | |
| getSecureRandomAlgorithm | back to summary |
|---|---|
| public String getSecureRandomAlgorithm() | |
| getSslKeyManagerFactoryAlgorithm | back to summary |
|---|---|
| public String getSslKeyManagerFactoryAlgorithm() | |
| getSslTrustManagerFactoryAlgorithm | back to summary |
|---|---|
| public String getSslTrustManagerFactoryAlgorithm() | |
| getTruststore | back to summary |
|---|---|
| public String getTruststore() | |
| getTruststoreType | back to summary |
|---|---|
| public String getTruststoreType() | |
| getWantClientAuth | back to summary |
|---|---|
| public boolean getWantClientAuth() | |
| isAllowRenegotiate | back to summary |
|---|---|
public boolean isAllowRenegotiate()
| |
| isConfidential | back to summary |
|---|---|
| public boolean isConfidential(Request request) Overrides org. Implements org. By default, we're confidential, given we speak SSL. But, if we've been told about an confidential port, and said port is not our port, then we're not. This allows separation of listeners providing INTEGRAL versus CONFIDENTIAL constraints, such as one SSL listener configured to require client certs providing CONFIDENTIAL, whereas another SSL listener not requiring client certs providing mere INTEGRAL constraints.
| |
| isIntegral | back to summary |
|---|---|
| public boolean isIntegral(Request request) Overrides org. Implements org. By default, we're integral, given we speak SSL. But, if we've been told about an integral port, and said port is not our port, then we're not. This allows separation of listeners providing INTEGRAL versus CONFIDENTIAL constraints, such as one SSL listener configured to require client certs providing CONFIDENTIAL, whereas another SSL listener not requiring client certs providing mere INTEGRAL constraints.
| |
| newServerSocket | back to summary |
|---|---|
| protected ServerSocket newServerSocket(String host, int port, int backlog) throws IOException Overrides org.
| |
| setAllowRenegotiate | back to summary |
|---|---|
| public void setAllowRenegotiate(boolean allowRenegotiate) Set if SSL re-negotiation is allowed. CVE-2009-3555 discovered a vulnerability in SSL/TLS with re-negotiation. If your JVM does not have CVE-2009-3555 fixed, then re-negotiation should not be allowed.
| |
| setExcludeCipherSuites | back to summary |
|---|---|
public void setExcludeCipherSuites(String[] cipherSuites)
| |
| setHandshakeTimeout | back to summary |
|---|---|
| public void setHandshakeTimeout(int msec) Set the time in milliseconds for so_timeout during ssl handshaking
| |
| setKeyPassword | back to summary |
|---|---|
| public void setKeyPassword(String password) | |
| setKeystore | back to summary |
|---|---|
public void setKeystore(String keystore)
| |
| setKeystoreType | back to summary |
|---|---|
| public void setKeystoreType(String keystoreType) | |
| setNeedClientAuth | back to summary |
|---|---|
| public void setNeedClientAuth(boolean needClientAuth) Set the value of the needClientAuth property
| |
| setPassword | back to summary |
|---|---|
| public void setPassword(String password) | |
| setProtocol | back to summary |
|---|---|
| public void setProtocol(String protocol) | |
| setProvider | back to summary |
|---|---|
| public void setProvider(String _provider) | |
| setSecureRandomAlgorithm | back to summary |
|---|---|
| public void setSecureRandomAlgorithm(String algorithm) | |
| setSslKeyManagerFactoryAlgorithm | back to summary |
|---|---|
| public void setSslKeyManagerFactoryAlgorithm(String algorithm) | |
| setSslTrustManagerFactoryAlgorithm | back to summary |
|---|---|
| public void setSslTrustManagerFactoryAlgorithm(String algorithm) | |
| setTrustPassword | back to summary |
|---|---|
| public void setTrustPassword(String password) | |
| setTruststore | back to summary |
|---|---|
| public void setTruststore(String truststore) | |
| setTruststoreType | back to summary |
|---|---|
| public void setTruststoreType(String truststoreType) | |
| setWantClientAuth | back to summary |
|---|---|
| public void setWantClientAuth(boolean wantClientAuth) Set the value of the _wantClientAuth property. This property is used when
| |
| Modifier and Type | Field and Description |
|---|---|
| private X509Certificate[] | |
| private Integer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv X509Certificate[] | |
| pack-priv Integer |
| _certs | back to summary |
|---|---|
| private X509Certificate[] _certs | |
| _keySize | back to summary |
|---|---|
| private Integer _keySize | |
| CachedInfo | back to summary |
|---|---|
| pack-priv CachedInfo(Integer keySize, X509Certificate[] certs) | |
| getCerts | back to summary |
|---|---|
| pack-priv X509Certificate[] getCerts() | |
| getKeySize | back to summary |
|---|---|
| pack-priv Integer getKeySize() | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | run()
Overrides org. Implements java. |
| public void | shutdownOutput()
Overrides org. Implements org. |
| SslConnection | back to summary |
|---|---|
| public SslConnection(Socket socket) throws IOException | |
| run | back to summary |
|---|---|
| public void run() Overrides org. Implements java. Doc from java. Runs this operation. | |
| shutdownOutput | back to summary |
|---|---|
| public void shutdownOutput() throws IOException Overrides org. Implements org. Doc from org. Shutdown any backing output stream associated with the endpoint | |