Interface Authorizer

All Superinterfaces:
ConfigurablePlugin, Plugin

public interface Authorizer extends ConfigurablePlugin
See https://restheart.org/docs/plugins/security-plugins/#authorizers
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    A secured request is allowed when no VETOER denies it and at least one ALLOWER allows it
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isAllowed(Request<?> request)
     
    boolean
     

    Methods inherited from interface org.restheart.plugins.ConfigurablePlugin

    arg, argOrDefault
  • Method Details

    • isAllowed

      boolean isAllowed(Request<?> request)
      Parameters:
      request -
      Returns:
      true if request is allowed
    • isAuthenticationRequired

      boolean isAuthenticationRequired(Request<?> request)
      Parameters:
      request -
      Returns:
      true if not authenticated user won't be allowed