Class ServletConfidentialityConstraintHandler
java.lang.Object
io.undertow.security.handlers.AbstractConfidentialityHandler
io.undertow.security.handlers.SinglePortConfidentialityHandler
io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler
- All Implemented Interfaces:
HttpHandler
Servlet specific extension to
SinglePortConfidentialityHandler- Author:
- Darran Lofthouse
-
Constructor Summary
ConstructorsConstructorDescriptionServletConfidentialityConstraintHandler(ConfidentialPortManager portManager, HttpHandler next) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanconfidentialityRequired(HttpServerExchange exchange) protected URIgetRedirectURI(HttpServerExchange exchange) voidhandleRequest(HttpServerExchange exchange) protected booleanisConfidential(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, HttpHandler next)
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceHttpHandler- Overrides:
handleRequestin classAbstractConfidentialityHandler- Throws:
Exception
-
confidentialityRequired
- Overrides:
confidentialityRequiredin classAbstractConfidentialityHandler
-
getRedirectURI
- Overrides:
getRedirectURIin classSinglePortConfidentialityHandler- Throws:
URISyntaxException
-
isConfidential
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 classAbstractConfidentialityHandler- Parameters:
exchange- - TheHttpServerExchangefor the request being processed.- Returns:
- true if the request is 'sufficiently' confidential, false otherwise.
-