Package org.glassfish.grizzly.ssl
Class SSLSupportImpl
- java.lang.Object
-
- org.glassfish.grizzly.ssl.SSLSupportImpl
-
- All Implemented Interfaces:
SSLSupport
public class SSLSupportImpl extends java.lang.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 java.lang.StringKEY_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 java.security.cert.Certificate[]getCertificates(javax.net.ssl.SSLSession session)java.lang.StringgetCipherSuite()The cipher suite being used on this connection.java.lang.IntegergetKeySize()Copied fromorg.apache.catalina.valves.CertificateValvejava.security.cert.Certificate[]getPeerCertificates()java.security.cert.Certificate[]getPeerCertificates(boolean force)java.lang.StringgetSessionId()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 java.lang.String KEY_SIZE_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SSLSupportImpl
public SSLSupportImpl(Connection connection)
-
-
Method Detail
-
getCipherSuite
public java.lang.String getCipherSuite() throws java.io.IOExceptionDescription copied from interface:SSLSupportThe cipher suite being used on this connection.- Specified by:
getCipherSuitein interfaceSSLSupport- Throws:
java.io.IOException
-
getPeerCertificates
public java.security.cert.Certificate[] getPeerCertificates() throws java.io.IOException- Specified by:
getPeerCertificatesin interfaceSSLSupport- Returns:
- The client certificate chain (if any).
- Throws:
java.io.IOException
-
getCertificates
protected java.security.cert.Certificate[] getCertificates(javax.net.ssl.SSLSession session) throws java.io.IOException- Throws:
java.io.IOException
-
getPeerCertificates
public java.security.cert.Certificate[] getPeerCertificates(boolean force) throws java.io.IOException- Specified by:
getPeerCertificatesin interfaceSSLSupport- Parameters:
force- If true, then re-negotiate the connection if necessary.- Returns:
- The client certificate chain (if any).
- Throws:
java.io.IOException
-
getKeySize
public java.lang.Integer getKeySize() throws java.io.IOExceptionCopied fromorg.apache.catalina.valves.CertificateValve- Specified by:
getKeySizein interfaceSSLSupport- Throws:
java.io.IOException
-
getSessionId
public java.lang.String getSessionId() throws java.io.IOExceptionDescription copied from interface:SSLSupportThe current session Id.- Specified by:
getSessionIdin interfaceSSLSupport- Throws:
java.io.IOException
-
-