public class Authorizer
extends java.lang.Object
implements org.swisspush.gateleen.core.logging.LoggableResource
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
Authorizer(io.vertx.core.Vertx vertx,
org.swisspush.gateleen.core.storage.ResourceStorage storage,
java.lang.String securityRoot,
java.lang.String rolePattern) |
| Modifier and Type | Method and Description |
|---|---|
io.vertx.core.Future<java.lang.Boolean> |
authorize(io.vertx.core.http.HttpServerRequest request) |
void |
authorize(io.vertx.core.http.HttpServerRequest request,
io.vertx.core.Handler<java.lang.Void> handler) |
void |
enableResourceLogging(boolean resourceLoggingEnabled) |
public Authorizer(io.vertx.core.Vertx vertx,
org.swisspush.gateleen.core.storage.ResourceStorage storage,
java.lang.String securityRoot,
java.lang.String rolePattern)
public void enableResourceLogging(boolean resourceLoggingEnabled)
enableResourceLogging in interface org.swisspush.gateleen.core.logging.LoggableResourcepublic io.vertx.core.Future<java.lang.Boolean> authorize(io.vertx.core.http.HttpServerRequest request)
public void authorize(io.vertx.core.http.HttpServerRequest request,
io.vertx.core.Handler<java.lang.Void> handler)