public class ConstraintAuthorizationHandler extends Object implements io.undertow.server.HttpHandler
| Modifier and Type | Field and Description |
|---|---|
protected String |
errorPage |
static io.undertow.util.HttpString |
KEYCLOAK_ACCESS_TOKEN |
static io.undertow.util.HttpString |
KEYCLOAK_EMAIL |
static io.undertow.util.HttpString |
KEYCLOAK_NAME |
static io.undertow.util.HttpString |
KEYCLOAK_SUBJECT |
static io.undertow.util.HttpString |
KEYCLOAK_USERNAME |
protected io.undertow.server.HttpHandler |
next |
protected boolean |
sendAccessToken |
| Constructor and Description |
|---|
ConstraintAuthorizationHandler(io.undertow.server.HttpHandler next,
String errorPage,
boolean sendAccessToken) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticatedRequest(KeycloakUndertowAccount account,
io.undertow.server.HttpServerExchange exchange) |
void |
handleRequest(io.undertow.server.HttpServerExchange exchange) |
public static final io.undertow.util.HttpString KEYCLOAK_SUBJECT
public static final io.undertow.util.HttpString KEYCLOAK_USERNAME
public static final io.undertow.util.HttpString KEYCLOAK_EMAIL
public static final io.undertow.util.HttpString KEYCLOAK_NAME
public static final io.undertow.util.HttpString KEYCLOAK_ACCESS_TOKEN
protected io.undertow.server.HttpHandler next
protected String errorPage
protected boolean sendAccessToken
public ConstraintAuthorizationHandler(io.undertow.server.HttpHandler next,
String errorPage,
boolean sendAccessToken)
public void handleRequest(io.undertow.server.HttpServerExchange exchange)
throws Exception
handleRequest in interface io.undertow.server.HttpHandlerExceptionpublic void authenticatedRequest(KeycloakUndertowAccount account, io.undertow.server.HttpServerExchange exchange) throws Exception
ExceptionCopyright © 2014. All Rights Reserved.