Top Description Fields Constructors Methods
io.undertow.servlet.handlers.security

public Class SSLInformationAssociationHandler

extends Object
implements HttpHandler
Class Inheritance
All Implemented Interfaces
io.undertow.server.HttpHandler
Imports
java.security.cert.Certificate, .X509Certificate, io.undertow.server.HttpHandler, .HttpServerExchange, .SSLSessionInfo, io.undertow.servlet.handlers.ServletRequestContext, io.undertow.util.HexConverter, jakarta.servlet.ServletRequest

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.

Field Summary

Modifier and TypeField and Description
private final HttpHandler

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private X509Certificate[]

Returns:

the chain of java.security.cert.X509Certificates used to negotiate the SSL connection.
Will be null if the chain is missing or empty.
getCerts
(SSLSessionInfo
the javax.net.ssl.SSLSession to use as the source of the cert chain.
session
)

Return the chain of X509 certificates used to negotiate the SSL Session.

public static int

Returns:

int indicating the effective key entropy bit-length.
getKeyLength
(String
String name of the TLS cipher suite.
cipherSuite
)

Given the name of a TLS/SSL cipher suite, return an int representing it effective stream cipher key strength.

public void
handleRequest(HttpServerExchange
the HTTP request/response exchange
exchange
)

Implements io.undertow.server.HttpHandler.handleRequest.

Handle the request.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nextback to summary
private final HttpHandler next

Constructor Detail

SSLInformationAssociationHandlerback to summary
public SSLInformationAssociationHandler(final HttpHandler next)

Method Detail

getCertsback to summary
private X509Certificate[] getCerts(SSLSessionInfo session)

Return the chain of X509 certificates used to negotiate the SSL Session.

Parameters
session:SSLSessionInfo

the javax.net.ssl.SSLSession to use as the source of the cert chain.

Returns:X509Certificate[]

the chain of java.security.cert.X509Certificates used to negotiate the SSL connection.
Will be null if the chain is missing or empty.

getKeyLengthback to summary
public static int getKeyLength(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

String name of the TLS cipher suite.

Returns:int

int indicating the effective key entropy bit-length.

handleRequestback to summary
public void handleRequest(HttpServerExchange exchange) throws Exception

Implements io.undertow.server.HttpHandler.handleRequest.

Doc from io.undertow.server.HttpHandler.handleRequest.

Handle the request.

Parameters
exchange:HttpServerExchange

the HTTP request/response exchange

Annotations
@Override