Package org.apache.tomcat.util.net
Class TLSClientHelloExtractor
- java.lang.Object
- 
- org.apache.tomcat.util.net.TLSClientHelloExtractor
 
- 
 public class TLSClientHelloExtractor extends java.lang.ObjectThis class extracts the SNI host name and ALPN protocols from a TLS client-hello message.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classTLSClientHelloExtractor.ExtractorResult
 - 
Field SummaryFields Modifier and Type Field Description static byte[]USE_TLS_RESPONSE
 - 
Constructor SummaryConstructors Constructor Description TLSClientHelloExtractor(java.nio.ByteBuffer netInBuffer)Creates the instance of the parser and processes the provided buffer.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getClientRequestedApplicationProtocols()java.util.List<java.lang.String>getClientRequestedCipherNames()java.util.List<Cipher>getClientRequestedCiphers()java.util.List<java.lang.String>getClientRequestedProtocols()TLSClientHelloExtractor.ExtractorResultgetResult()java.lang.StringgetSNIValue()
 
- 
- 
- 
Constructor Detail- 
TLSClientHelloExtractorpublic TLSClientHelloExtractor(java.nio.ByteBuffer netInBuffer) throws java.io.IOExceptionCreates 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:
- java.io.IOException- If the client hello message is malformed
 
 
- 
 - 
Method Detail- 
getResultpublic TLSClientHelloExtractor.ExtractorResult getResult() 
 - 
getSNIValuepublic java.lang.String getSNIValue() - Returns:
- The SNI value provided by the client converted to lower case if not already lower case.
 
 - 
getClientRequestedCipherspublic java.util.List<Cipher> getClientRequestedCiphers() 
 - 
getClientRequestedCipherNamespublic java.util.List<java.lang.String> getClientRequestedCipherNames() 
 - 
getClientRequestedApplicationProtocolspublic java.util.List<java.lang.String> getClientRequestedApplicationProtocols() 
 - 
getClientRequestedProtocolspublic java.util.List<java.lang.String> getClientRequestedProtocols() 
 
- 
 
-