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.SinglePortConfidentialityHandler
Servlet specific extension to
SinglePortConfidentialityHandler
- Author:
- Darran Lofthouse
-
Constructor Summary
ConstructorsConstructorDescriptionServletConfidentialityConstraintHandler
(ConfidentialPortManager portManager, io.undertow.server.HttpHandler next) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
confidentialityRequired
(io.undertow.server.HttpServerExchange exchange) protected URI
getRedirectURI
(io.undertow.server.HttpServerExchange exchange) void
handleRequest
(io.undertow.server.HttpServerExchange exchange) protected boolean
isConfidential
(io.undertow.server.HttpServerExchange exchange) Use the HttpServerExchange supplied to check if this request is already 'sufficiently' confidential.Methods inherited from class io.undertow.security.handlers.SinglePortConfidentialityHandler
getRedirectURI
-
Constructor Details
-
ServletConfidentialityConstraintHandler
public ServletConfidentialityConstraintHandler(ConfidentialPortManager portManager, io.undertow.server.HttpHandler next)
-
-
Method Details
-
handleRequest
- Specified by:
handleRequest
in interfaceio.undertow.server.HttpHandler
- Overrides:
handleRequest
in classio.undertow.security.handlers.AbstractConfidentialityHandler
- Throws:
Exception
-
confidentialityRequired
protected boolean confidentialityRequired(io.undertow.server.HttpServerExchange exchange) - Overrides:
confidentialityRequired
in classio.undertow.security.handlers.AbstractConfidentialityHandler
-
getRedirectURI
protected URI getRedirectURI(io.undertow.server.HttpServerExchange exchange) throws URISyntaxException - Overrides:
getRedirectURI
in classio.undertow.security.handlers.SinglePortConfidentialityHandler
- Throws:
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:
isConfidential
in classio.undertow.security.handlers.AbstractConfidentialityHandler
- Parameters:
exchange
- - TheHttpServerExchange
for the request being processed.- Returns:
- true if the request is 'sufficiently' confidential, false otherwise.
-