Class SSLInformationAssociationHandler
java.lang.Object
io.undertow.servlet.handlers.security.SSLInformationAssociationHandler
- All Implemented Interfaces:
io.undertow.server.HttpHandler
public class SSLInformationAssociationHandler
extends Object
implements io.undertow.server.HttpHandler
Handler that associates SSL metadata with request
cipher suite - javax.servlet.request.cipher_suite String bit size of the algorithm - javax.servlet.request.key_size Integer SSL session id - javax.servlet.request.ssl_session_id String
- Author:
- Tomaz Cerar (c) 2013 Red Hat Inc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getKeyLength
(String cipherSuite) Given the name of a TLS/SSL cipher suite, return an int representing it effective stream cipher key strength.void
handleRequest
(io.undertow.server.HttpServerExchange exchange)
-
Constructor Details
-
SSLInformationAssociationHandler
public SSLInformationAssociationHandler(io.undertow.server.HttpHandler next)
-
-
Method Details
-
getKeyLength
Given the name of a TLS/SSL cipher suite, return an int representing it effective stream cipher key strength. i.e. How much entropy material is in the key material being fed into the encryption routines.http://www.thesprawl.org/research/tls-and-ssl-cipher-suites/
- Parameters:
cipherSuite
- String name of the TLS cipher suite.- Returns:
- int indicating the effective key entropy bit-length.
-
handleRequest
- Specified by:
handleRequest
in interfaceio.undertow.server.HttpHandler
- Throws:
Exception
-