Package org.glassfish.grizzly.ssl
Class SSLSupportImpl
- java.lang.Object
-
- org.glassfish.grizzly.ssl.SSLSupportImpl
-
- All Implemented Interfaces:
SSLSupport
public class SSLSupportImpl extends Object implements SSLSupport
- Author:
- oleksiys
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.grizzly.ssl.SSLSupport
SSLSupport.CipherData
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_SIZE_KEY
-
Fields inherited from interface org.glassfish.grizzly.ssl.SSLSupport
CERTIFICATE_KEY, CIPHER_SUITE_KEY, SESSION_ID_KEY
-
-
Constructor Summary
Constructors Constructor Description SSLSupportImpl(Connection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Certificate[]
getCertificates(SSLSession session)
String
getCipherSuite()
The cipher suite being used on this connection.Integer
getKeySize()
Copied fromorg.apache.catalina.valves.CertificateValve
Certificate[]
getPeerCertificates()
Certificate[]
getPeerCertificates(boolean force)
String
getSessionId()
The current session Id.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.glassfish.grizzly.ssl.SSLSupport
getPeerCertificateChain, getPeerCertificateChain
-
-
-
-
Field Detail
-
KEY_SIZE_KEY
public static final String KEY_SIZE_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SSLSupportImpl
public SSLSupportImpl(Connection connection)
-
-
Method Detail
-
getCipherSuite
public String getCipherSuite() throws IOException
Description copied from interface:SSLSupport
The cipher suite being used on this connection.- Specified by:
getCipherSuite
in interfaceSSLSupport
- Throws:
IOException
-
getPeerCertificates
public Certificate[] getPeerCertificates() throws IOException
- Specified by:
getPeerCertificates
in interfaceSSLSupport
- Returns:
- The client certificate chain (if any).
- Throws:
IOException
-
getCertificates
protected Certificate[] getCertificates(SSLSession session) throws IOException
- Throws:
IOException
-
getPeerCertificates
public Certificate[] getPeerCertificates(boolean force) throws IOException
- Specified by:
getPeerCertificates
in interfaceSSLSupport
- Parameters:
force
- If true, then re-negotiate the connection if necessary.- Returns:
- The client certificate chain (if any).
- Throws:
IOException
-
getKeySize
public Integer getKeySize() throws IOException
Copied fromorg.apache.catalina.valves.CertificateValve
- Specified by:
getKeySize
in interfaceSSLSupport
- Throws:
IOException
-
getSessionId
public String getSessionId() throws IOException
Description copied from interface:SSLSupport
The current session Id.- Specified by:
getSessionId
in interfaceSSLSupport
- Throws:
IOException
-
-