Package io.undertow.httpcore
Class ConnectionSSLSessionInfo
java.lang.Object
io.undertow.httpcore.ConnectionSSLSessionInfo
- All Implemented Interfaces:
SSLSessionInfo
SSL session information that is read directly from the SSL session of the
XNIO connection
- Author:
- Stuart Douglas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the peer certificates.byte[]voidrenegotiate(ClientAuth sslClientAuthMode) Renegotiate in a blocking manner.
-
Constructor Details
-
ConnectionSSLSessionInfo
-
-
Method Details
-
getSessionId
public byte[] getSessionId()- Specified by:
getSessionIdin interfaceSSLSessionInfo- Returns:
- The SSL session ID, or null if this could not be determined.
-
getCipherSuite
- Specified by:
getCipherSuitein interfaceSSLSessionInfo
-
getPeerCertificates
public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException, RenegotiationRequiredExceptionDescription copied from interface:SSLSessionInfoGets the peer certificates. This may force SSL renegotiation.- Specified by:
getPeerCertificatesin interfaceSSLSessionInfo- Returns:
- The peer certificates
- Throws:
SSLPeerUnverifiedExceptionRenegotiationRequiredException- If the session
-
getPeerCertificateChain
public X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException, RenegotiationRequiredException- Specified by:
getPeerCertificateChainin interfaceSSLSessionInfo- Throws:
SSLPeerUnverifiedExceptionRenegotiationRequiredException
-
renegotiate
Description copied from interface:SSLSessionInfoRenegotiate in a blocking manner. This will set the client aut- Specified by:
renegotiatein interfaceSSLSessionInfo- Parameters:
sslClientAuthMode- The client cert mode to use when renegotiating- Throws:
IOException
-
getSSLSession
- Specified by:
getSSLSessionin interfaceSSLSessionInfo- Returns:
- The SSL session, or null if it is not applicable
-