Package io.github.mahmoudimus.quic.tls
Record Class ClientHelloInfo
java.lang.Object
java.lang.Record
io.github.mahmoudimus.quic.tls.ClientHelloInfo
- Record Components:
serverName- the host name fromserver_name(SNI), lower case without a trailing dot, or null if the client sent nonealpnProtocols- the application protocols the client offered, in its order of preference; each protocol's bytes are mapped one to one onto characters (ISO-8859-1)signatureSchemes- the client'ssignature_algorithmsthat can sign a TLS 1.3 CertificateVerify, in its order of preferencecipherSuites- the client's cipher suites, in its order of preferencegroups- the client'ssupported_groups, in its order of preference
public record ClientHelloInfo(String serverName, List<String> alpnProtocols, List<SignatureScheme> signatureSchemes, List<CipherSuite> cipherSuites, List<NamedGroup> groups)
extends Record
What a server's certificate and ALPN selectors see of a ClientHello. Only code points this
handshake supports are listed; others the client offered are left out.
-
Constructor Summary
ConstructorsConstructorDescriptionClientHelloInfo(String serverName, List<String> alpnProtocols, List<SignatureScheme> signatureSchemes, List<CipherSuite> cipherSuites, List<NamedGroup> groups) Copies the lists. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealpnProtocolsrecord component.Returns the value of thecipherSuitesrecord component.final booleanIndicates whether some other object is "equal to" this one.groups()Returns the value of thegroupsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theserverNamerecord component.Returns the value of thesignatureSchemesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClientHelloInfo
public ClientHelloInfo(String serverName, List<String> alpnProtocols, List<SignatureScheme> signatureSchemes, List<CipherSuite> cipherSuites, List<NamedGroup> groups) Copies the lists.- Parameters:
serverName- the SNI host name, or nullalpnProtocols- the offered application protocolssignatureSchemes- the offered signature schemescipherSuites- the offered cipher suitesgroups- the offered groups
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
serverName
Returns the value of theserverNamerecord component.- Returns:
- the value of the
serverNamerecord component
-
alpnProtocols
Returns the value of thealpnProtocolsrecord component.- Returns:
- the value of the
alpnProtocolsrecord component
-
signatureSchemes
Returns the value of thesignatureSchemesrecord component.- Returns:
- the value of the
signatureSchemesrecord component
-
cipherSuites
Returns the value of thecipherSuitesrecord component.- Returns:
- the value of the
cipherSuitesrecord component
-
groups
Returns the value of thegroupsrecord component.- Returns:
- the value of the
groupsrecord component
-