Package io.undertow.server
Class ConnectionSSLSessionInfo
- java.lang.Object
-
- io.undertow.server.ConnectionSSLSessionInfo
-
- All Implemented Interfaces:
SSLSessionInfo
public class ConnectionSSLSessionInfo extends java.lang.Object implements SSLSessionInfo
SSL session information that is read directly from the SSL session of the XNIO connection- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description ConnectionSSLSessionInfo(org.xnio.channels.SslChannel channel, HttpServerConnection serverConnection)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetCipherSuite()javax.security.cert.X509Certificate[]getPeerCertificateChain()Deprecated.java.security.cert.Certificate[]getPeerCertificates()Gets the peer certificates.byte[]getSessionId()javax.net.ssl.SSLSessiongetSSLSession()voidrenegotiate(HttpServerExchange exchange, org.xnio.SslClientAuthMode sslClientAuthMode)Renegotiate in a blocking manner.voidrenegotiateBufferRequest(HttpServerExchange exchange, org.xnio.SslClientAuthMode newAuthMode)voidrenegotiateNoRequest(HttpServerExchange exchange, org.xnio.SslClientAuthMode newAuthMode)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.undertow.server.SSLSessionInfo
getKeySize
-
-
-
-
Constructor Detail
-
ConnectionSSLSessionInfo
public ConnectionSSLSessionInfo(org.xnio.channels.SslChannel channel, HttpServerConnection serverConnection)
-
-
Method Detail
-
getSessionId
public byte[] getSessionId()
- Specified by:
getSessionIdin interfaceSSLSessionInfo- Returns:
- The SSL session ID, or null if this could not be determined.
-
getCipherSuite
public java.lang.String getCipherSuite()
- Specified by:
getCipherSuitein interfaceSSLSessionInfo
-
getPeerCertificates
public java.security.cert.Certificate[] getPeerCertificates() throws javax.net.ssl.SSLPeerUnverifiedException, RenegotiationRequiredExceptionDescription copied from interface:SSLSessionInfoGets the peer certificates. This may force SSL renegotiation.- Specified by:
getPeerCertificatesin interfaceSSLSessionInfo- Returns:
- The peer certificates
- Throws:
javax.net.ssl.SSLPeerUnverifiedExceptionRenegotiationRequiredException- If the session
-
getPeerCertificateChain
@Deprecated(since="2.2.3", forRemoval=false) public javax.security.cert.X509Certificate[] getPeerCertificateChain() throws javax.net.ssl.SSLPeerUnverifiedException, RenegotiationRequiredExceptionDeprecated.Description copied from interface:SSLSessionInfoThis method is no longer supported on java 15 and should be avoided.- Specified by:
getPeerCertificateChainin interfaceSSLSessionInfo- Throws:
javax.net.ssl.SSLPeerUnverifiedExceptionRenegotiationRequiredException- See Also:
SSLSession.getPeerCertificateChain()
-
renegotiate
public void renegotiate(HttpServerExchange exchange, org.xnio.SslClientAuthMode sslClientAuthMode) throws java.io.IOException
Description copied from interface:SSLSessionInfoRenegotiate in a blocking manner. This will set the client aut TODO: we also need a non-blocking version- Specified by:
renegotiatein interfaceSSLSessionInfo- Parameters:
exchange- The exchangesslClientAuthMode- The client cert mode to use when renegotiating- Throws:
java.io.IOException
-
getSSLSession
public javax.net.ssl.SSLSession getSSLSession()
- Specified by:
getSSLSessionin interfaceSSLSessionInfo- Returns:
- The SSL session, or null if it is not applicable
-
renegotiateBufferRequest
public void renegotiateBufferRequest(HttpServerExchange exchange, org.xnio.SslClientAuthMode newAuthMode) throws java.io.IOException
- Throws:
java.io.IOException
-
renegotiateNoRequest
public void renegotiateNoRequest(HttpServerExchange exchange, org.xnio.SslClientAuthMode newAuthMode) throws java.io.IOException
- Throws:
java.io.IOException
-
-