Class ServletConfidentialityConstraintHandler
- java.lang.Object
-
- io.undertow.security.handlers.AbstractConfidentialityHandler
-
- io.undertow.security.handlers.SinglePortConfidentialityHandler
-
- io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler
-
- All Implemented Interfaces:
io.undertow.server.HttpHandler
public class ServletConfidentialityConstraintHandler extends io.undertow.security.handlers.SinglePortConfidentialityHandlerServlet specific extension toSinglePortConfidentialityHandler- Author:
- Darran Lofthouse
-
-
Constructor Summary
Constructors Constructor Description ServletConfidentialityConstraintHandler(ConfidentialPortManager portManager, io.undertow.server.HttpHandler next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanconfidentialityRequired(io.undertow.server.HttpServerExchange exchange)protected java.net.URIgetRedirectURI(io.undertow.server.HttpServerExchange exchange)voidhandleRequest(io.undertow.server.HttpServerExchange exchange)protected booleanisConfidential(io.undertow.server.HttpServerExchange exchange)Use the HttpServerExchange supplied to check if this request is already 'sufficiently' confidential.
-
-
-
Constructor Detail
-
ServletConfidentialityConstraintHandler
public ServletConfidentialityConstraintHandler(ConfidentialPortManager portManager, io.undertow.server.HttpHandler next)
-
-
Method Detail
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws java.lang.Exception- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Overrides:
handleRequestin classio.undertow.security.handlers.AbstractConfidentialityHandler- Throws:
java.lang.Exception
-
confidentialityRequired
protected boolean confidentialityRequired(io.undertow.server.HttpServerExchange exchange)
- Overrides:
confidentialityRequiredin classio.undertow.security.handlers.AbstractConfidentialityHandler
-
getRedirectURI
protected java.net.URI getRedirectURI(io.undertow.server.HttpServerExchange exchange) throws java.net.URISyntaxException- Overrides:
getRedirectURIin classio.undertow.security.handlers.SinglePortConfidentialityHandler- Throws:
java.net.URISyntaxException
-
isConfidential
protected boolean isConfidential(io.undertow.server.HttpServerExchange exchange)
Use the HttpServerExchange supplied to check if this request is already 'sufficiently' confidential. Here we say 'sufficiently' as sub-classes can override this and maybe even go so far as querying the actual SSLSession.- Overrides:
isConfidentialin classio.undertow.security.handlers.AbstractConfidentialityHandler- Parameters:
exchange- - TheHttpServerExchangefor the request being processed.- Returns:
- true if the request is 'sufficiently' confidential, false otherwise.
-
-