Class SSLInformationAssociationHandler

  • All Implemented Interfaces:
    io.undertow.server.HttpHandler

    public class SSLInformationAssociationHandler
    extends java.lang.Object
    implements io.undertow.server.HttpHandler
    Handler that associates SSL metadata with request

    cipher suite - jakarta.servlet.request.cipher_suite String bit size of the algorithm - jakarta.servlet.request.key_size Integer SSL session id - jakarta.servlet.request.ssl_session_id String

    Author:
    Tomaz Cerar (c) 2013 Red Hat Inc.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static int getKeyLength​(java.lang.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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SSLInformationAssociationHandler

        public SSLInformationAssociationHandler​(io.undertow.server.HttpHandler next)
    • Method Detail

      • getKeyLength

        public static int getKeyLength​(java.lang.String cipherSuite)
        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

        public void handleRequest​(io.undertow.server.HttpServerExchange exchange)
                           throws java.lang.Exception
        Specified by:
        handleRequest in interface io.undertow.server.HttpHandler
        Throws:
        java.lang.Exception