Class Authorizer

  • All Implemented Interfaces:
    org.swisspush.gateleen.core.logging.LoggableResource

    public class Authorizer
    extends java.lang.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.Logger log  
    • Constructor Summary

      Constructors 
      Constructor Description
      Authorizer​(io.vertx.core.Vertx vertx, org.swisspush.gateleen.core.storage.ResourceStorage storage, java.lang.String securityRoot, java.lang.String rolePattern)  
      Authorizer​(io.vertx.core.Vertx vertx, org.swisspush.gateleen.core.storage.ResourceStorage storage, java.lang.String securityRoot, java.lang.String rolePattern, java.lang.String rolePrefix, java.util.Map<java.lang.String,​java.lang.Object> properties)  
      Authorizer​(io.vertx.core.Vertx vertx, org.swisspush.gateleen.core.storage.ResourceStorage storage, java.lang.String securityRoot, java.lang.String rolePattern, java.lang.String rolePrefix, java.util.Map<java.lang.String,​java.lang.Object> properties, boolean grantAccessWithoutRoles)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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,
                          java.lang.String securityRoot,
                          java.lang.String rolePattern)
      • Authorizer

        public Authorizer​(io.vertx.core.Vertx vertx,
                          org.swisspush.gateleen.core.storage.ResourceStorage storage,
                          java.lang.String securityRoot,
                          java.lang.String rolePattern,
                          java.lang.String rolePrefix,
                          java.util.Map<java.lang.String,​java.lang.Object> properties)
      • Authorizer

        public Authorizer​(io.vertx.core.Vertx vertx,
                          org.swisspush.gateleen.core.storage.ResourceStorage storage,
                          java.lang.String securityRoot,
                          java.lang.String rolePattern,
                          java.lang.String rolePrefix,
                          java.util.Map<java.lang.String,​java.lang.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<java.lang.Boolean> authorize​(io.vertx.core.http.HttpServerRequest request)
      • authorize

        public void authorize​(io.vertx.core.http.HttpServerRequest request,
                              io.vertx.core.Handler<java.lang.Void> handler)