org.apache.tomcat.util.net.jsse
Class JSSE14Support
java.lang.Object
|
+--org.apache.tomcat.util.net.jsse.JSSESupport
|
+--org.apache.tomcat.util.net.jsse.JSSE14Support
- All Implemented Interfaces:
- SSLSupport
- public final class JSSE14Support
- extends org.apache.tomcat.util.net.jsse.JSSESupport
Field Summary |
protected javax.net.ssl.SSLSocket |
ssl
|
Method Summary |
java.lang.String |
getCipherSuite()
The cipher suite being used on this connection. |
java.lang.Integer |
getKeySize()
Copied from org.apache.catalina.valves.CertificateValve |
java.lang.Object[] |
getPeerCertificateChain()
The client certificate chain (if any). |
java.lang.Object[] |
getPeerCertificateChain(boolean force)
The client certificate chain (if any). |
java.lang.String |
getSessionId()
The current session Id. |
protected java.security.cert.X509Certificate[] |
getX509Certificates(javax.net.ssl.SSLSession session)
Return the X509certificates or null if we can't get them. |
protected void |
handShake()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ssl
protected javax.net.ssl.SSLSocket ssl
JSSE14Support
public JSSE14Support(javax.net.ssl.SSLSocket sock)
handShake
protected void handShake()
throws java.io.IOException
- Overrides:
handShake
in class org.apache.tomcat.util.net.jsse.JSSESupport
java.io.IOException
getX509Certificates
protected java.security.cert.X509Certificate[] getX509Certificates(javax.net.ssl.SSLSession session)
throws java.io.IOException
- Return the X509certificates or null if we can't get them.
XXX We should allow unverified certificates
- Overrides:
getX509Certificates
in class org.apache.tomcat.util.net.jsse.JSSESupport
java.io.IOException
getCipherSuite
public java.lang.String getCipherSuite()
throws java.io.IOException
- Description copied from interface:
SSLSupport
- The cipher suite being used on this connection.
- Specified by:
getCipherSuite
in interface SSLSupport
java.io.IOException
getPeerCertificateChain
public java.lang.Object[] getPeerCertificateChain()
throws java.io.IOException
- Description copied from interface:
SSLSupport
- The client certificate chain (if any).
- Specified by:
getPeerCertificateChain
in interface SSLSupport
java.io.IOException
getPeerCertificateChain
public java.lang.Object[] getPeerCertificateChain(boolean force)
throws java.io.IOException
- Description copied from interface:
SSLSupport
- The client certificate chain (if any).
- Specified by:
getPeerCertificateChain
in interface SSLSupport
- Parameters:
force
- If true
, then re-negotiate the
connection if necessary.
java.io.IOException
getKeySize
public java.lang.Integer getKeySize()
throws java.io.IOException
- Copied from
org.apache.catalina.valves.CertificateValve
- Specified by:
getKeySize
in interface SSLSupport
java.io.IOException
getSessionId
public java.lang.String getSessionId()
throws java.io.IOException
- Description copied from interface:
SSLSupport
- The current session Id.
- Specified by:
getSessionId
in interface SSLSupport
java.io.IOException
Copyright ? 2000-2003 Apache Software Foundation. All Rights Reserved.