Package io.undertow.server
Interface SSLSessionInfo
-
- All Known Implementing Classes:
BasicSSLSessionInfo,ConnectionSSLSessionInfo
public interface SSLSessionInfoSSL session information.- Author:
- Stuart Douglas
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetCipherSuite()javax.security.cert.X509Certificate[]getPeerCertificateChain()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.
-
-
-
Method Detail
-
getSessionId
byte[] getSessionId()
- Returns:
- The SSL session ID, or null if this could not be determined.
-
getCipherSuite
java.lang.String getCipherSuite()
-
getPeerCertificates
java.security.cert.Certificate[] getPeerCertificates() throws javax.net.ssl.SSLPeerUnverifiedException, RenegotiationRequiredExceptionGets the peer certificates. This may force SSL renegotiation.- Returns:
- The peer certificates
- Throws:
javax.net.ssl.SSLPeerUnverifiedExceptionRenegotiationRequiredException- If the session
-
getPeerCertificateChain
javax.security.cert.X509Certificate[] getPeerCertificateChain() throws javax.net.ssl.SSLPeerUnverifiedException, RenegotiationRequiredException- Throws:
javax.net.ssl.SSLPeerUnverifiedExceptionRenegotiationRequiredException
-
renegotiate
void renegotiate(HttpServerExchange exchange, org.xnio.SslClientAuthMode sslClientAuthMode) throws java.io.IOException
Renegotiate in a blocking manner. This will set the client aut TODO: we also need a non-blocking version- Parameters:
exchange- The exchangesslClientAuthMode- The client cert mode to use when renegotiating- Throws:
java.io.IOException
-
getSSLSession
javax.net.ssl.SSLSession getSSLSession()
- Returns:
- The SSL session, or null if it is not applicable
-
-