Class 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 Detail

      • log

        public static final org.slf4j.Logger log
    • 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)
      • 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,
                          boolean grantAccessWithoutRoles)
    • Method Detail

      • enableResourceLogging

        public void enableResourceLogging​(boolean resourceLoggingEnabled)
        Specified by:
        enableResourceLogging in interface org.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)