Module org.eclipse.jetty.server
Package org.eclipse.jetty.server
Record Class SecureRequestCustomizer.SslSessionData
java.lang.Object
java.lang.Record
org.eclipse.jetty.server.SecureRequestCustomizer.SslSessionData
- Enclosing class:
SecureRequestCustomizer
public static record SecureRequestCustomizer.SslSessionData(String sessionId, String cipherSuite, int keySize, X509Certificate[] peerCertificates)
extends Record
Simple bundle of data that is cached in the SSLSession.
-
Constructor Summary
ConstructorsConstructorDescriptionSslSessionData(String sessionId, String cipherSuite, int keySize, X509Certificate[] peerCertificates) Creates an instance of aSslSessionDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecipherSuiterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intkeySize()Returns the value of thekeySizerecord component.Returns the value of thepeerCertificatesrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SslSessionData
public SslSessionData(String sessionId, String cipherSuite, int keySize, X509Certificate[] peerCertificates) Creates an instance of aSslSessionDatarecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentcipherSuite- the value for thecipherSuiterecord componentkeySize- the value for thekeySizerecord componentpeerCertificates- the value for thepeerCertificatesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
cipherSuite
Returns the value of thecipherSuiterecord component.- Returns:
- the value of the
cipherSuiterecord component
-
keySize
public int keySize()Returns the value of thekeySizerecord component.- Returns:
- the value of the
keySizerecord component
-
peerCertificates
Returns the value of thepeerCertificatesrecord component.- Returns:
- the value of the
peerCertificatesrecord component
-