Class MongoAclAuthorizer

java.lang.Object
org.restheart.security.authorizers.MongoAclAuthorizer
All Implemented Interfaces:
org.restheart.plugins.ConfigurablePlugin, org.restheart.plugins.Plugin, org.restheart.plugins.security.Authorizer

public class MongoAclAuthorizer extends Object implements org.restheart.plugins.security.Authorizer
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Field Details

  • Constructor Details

    • MongoAclAuthorizer

      public MongoAclAuthorizer()
  • Method Details

    • init

      public void init()
    • isAllowed

      public boolean isAllowed(org.restheart.exchange.Request<?> request)
      Specified by:
      isAllowed in interface org.restheart.plugins.security.Authorizer
      Parameters:
      request -
      Returns:
    • isAuthenticationRequired

      public boolean isAuthenticationRequired(org.restheart.exchange.Request request)
      Specified by:
      isAuthenticationRequired in interface org.restheart.plugins.security.Authorizer
    • rolePermissions

      public LinkedHashSet<MongoAclPermission> rolePermissions(String role)
      Parameters:
      role -
      Returns:
      the acl
    • checkAclCollection

      public boolean checkAclCollection() throws IllegalStateException
      Throws:
      IllegalStateException
    • rootRole

      public String rootRole()