public class ServletConfidentialityConstraintHandler extends SinglePortConfidentialityHandler
SinglePortConfidentialityHandler
Constructor and Description |
---|
ServletConfidentialityConstraintHandler(ConfidentialPortManager portManager, HttpHandler next) |
Modifier and Type | Method and Description |
---|---|
protected boolean | confidentialityRequired(HttpServerExchange exchange) Use the HttpServerExchange to identify if confidentiality is required. |
protected URI | getRedirectURI(HttpServerExchange exchange) All sub-classes are required to provide an implementation of this method, using the HttpServerExchange for the current request return the address to use for a redirect should confidentiality be required and the request not be confidential. |
void | handleRequest(HttpServerExchange exchange) Handle the request. |
protected boolean | isConfidential(HttpServerExchange exchange) Use the HttpServerExchange supplied to check if this request is already 'sufficiently' confidential. |
getRedirectURI
public ServletConfidentialityConstraintHandler(ConfidentialPortManager portManager, HttpHandler next)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandler
handleRequest
in interface HttpHandler
handleRequest
in class AbstractConfidentialityHandler
exchange
- the HTTP request/response exchangeException
protected boolean confidentialityRequired(HttpServerExchange exchange)
AbstractConfidentialityHandler
confidentialityRequired
in class AbstractConfidentialityHandler
exchange
- - The HttpServerExchange
for the request being processed.protected URI getRedirectURI(HttpServerExchange exchange) throws URISyntaxException
AbstractConfidentialityHandler
getRedirectURI
in class SinglePortConfidentialityHandler
exchange
- - The HttpServerExchange
for the request being processed.URI
to redirect to.URISyntaxException
protected boolean isConfidential(HttpServerExchange exchange)
isConfidential
in class AbstractConfidentialityHandler
exchange
- - The HttpServerExchange
for the request being processed.Copyright © 2020 JBoss by Red Hat. All rights reserved.