Class Authorizer
- java.lang.Object
-
- org.swisspush.gateleen.security.authorization.Authorizer
-
- All Implemented Interfaces:
org.swisspush.gateleen.core.logging.LoggableResource
public class Authorizer extends Object implements org.swisspush.gateleen.core.logging.LoggableResource
- Author:
- https://github.com/lbovet [Laurent Bovet]
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description Authorizer(io.vertx.core.Vertx vertx, org.swisspush.gateleen.core.storage.ResourceStorage storage, String securityRoot, String rolePattern)Authorizer(io.vertx.core.Vertx vertx, org.swisspush.gateleen.core.storage.ResourceStorage storage, String securityRoot, String rolePattern, String rolePrefix, Map<String,Object> properties)Authorizer(io.vertx.core.Vertx vertx, org.swisspush.gateleen.core.storage.ResourceStorage storage, String securityRoot, String rolePattern, String rolePrefix, Map<String,Object> properties, boolean grantAccessWithoutRoles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.vertx.core.Future<Boolean>authorize(io.vertx.core.http.HttpServerRequest request)voidauthorize(io.vertx.core.http.HttpServerRequest request, io.vertx.core.Handler<Void> handler)voidenableResourceLogging(boolean resourceLoggingEnabled)
-
-
-
Constructor Detail
-
Authorizer
public Authorizer(io.vertx.core.Vertx vertx, org.swisspush.gateleen.core.storage.ResourceStorage storage, String securityRoot, String rolePattern)
-
Authorizer
public Authorizer(io.vertx.core.Vertx vertx, org.swisspush.gateleen.core.storage.ResourceStorage storage, String securityRoot, String rolePattern, String rolePrefix, Map<String,Object> properties)
-
-
Method Detail
-
enableResourceLogging
public void enableResourceLogging(boolean resourceLoggingEnabled)
- Specified by:
enableResourceLoggingin interfaceorg.swisspush.gateleen.core.logging.LoggableResource
-
authorize
public io.vertx.core.Future<Boolean> authorize(io.vertx.core.http.HttpServerRequest request)
-
authorize
public void authorize(io.vertx.core.http.HttpServerRequest request, io.vertx.core.Handler<Void> handler)
-
-