Package org.eclipse.jetty.io
Interface EndPoint.SslSessionData
- Enclosing interface:
- EndPoint
public static interface EndPoint.SslSessionData
Interface representing bundle of SSLSession associated data.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EndPoint.SslSessionData
from
(SSLSession sslSession, String sslSessionId, String cipherSuite, X509Certificate[] peerCertificates) default int
keySize()
Calculates the key size based on the cipher suite.static EndPoint.SslSessionData
withCipherSuite
(EndPoint.SslSessionData baseData, String cipherSuite) static EndPoint.SslSessionData
withSslSessionId
(EndPoint.SslSessionData baseData, String sslSessionId)
-
Field Details
-
ATTRIBUTE
The name at which anSslSessionData
instance may be found as a requestattribute
.- See Also:
-
-
Method Details
-
sslSession
SSLSession sslSession()- Returns:
- The
SSLSession
itself, if known, elsenull
.
-
sslSessionId
String sslSessionId()- Returns:
- The
SSLSession.getId()
rendered as a hex string, if known, elsenull
.
-
cipherSuite
String cipherSuite()- Returns:
- The
SSLSession.getCipherSuite()
if known, elsenull
.
-
peerCertificates
X509Certificate[] peerCertificates()- Returns:
- The
SSLSession.getPeerCertificates()
s converted toX509Certificate
, if known, elsenull
.
-
keySize
default int keySize()Calculates the key size based on the cipher suite.- Returns:
- the key size.
-
from
static EndPoint.SslSessionData from(SSLSession sslSession, String sslSessionId, String cipherSuite, X509Certificate[] peerCertificates) -
withCipherSuite
static EndPoint.SslSessionData withCipherSuite(EndPoint.SslSessionData baseData, String cipherSuite) -
withSslSessionId
static EndPoint.SslSessionData withSslSessionId(EndPoint.SslSessionData baseData, String sslSessionId)
-