Package org.apache.tomcat.util.net
Class TLSClientHelloExtractor
java.lang.Object
org.apache.tomcat.util.net.TLSClientHelloExtractor
This class extracts the SNI host name and ALPN protocols from a TLS
 client-hello message.
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionTLSClientHelloExtractor(ByteBuffer netInBuffer) Creates the instance of the parser and processes the provided buffer.
- 
Method SummaryModifier and TypeMethodDescription
- 
Field Details- 
USE_TLS_RESPONSEpublic static byte[] USE_TLS_RESPONSE
 
- 
- 
Constructor Details- 
TLSClientHelloExtractorCreates the instance of the parser and processes the provided buffer. The buffer position and limit will be modified during the execution of this method but they will be returned to the original values before the method exits.- Parameters:
- netInBuffer- The buffer containing the TLS data to process
- Throws:
- IOException- If the client hello message is malformed
 
 
- 
- 
Method Details- 
getResult
- 
getSNIValue- Returns:
- The SNI value provided by the client converted to lower case if not already lower case.
 
- 
getClientRequestedCiphers
- 
getClientRequestedCipherNames
- 
getClientRequestedApplicationProtocols
- 
getClientRequestedProtocols
 
-