Class RequestPredicatesAuthorizer
- java.lang.Object
-
- org.restheart.plugins.FileConfigurablePlugin
-
- org.restheart.security.plugins.authorizers.RequestPredicatesAuthorizer
-
- All Implemented Interfaces:
ConfigurablePlugin,Plugin,Authorizer
public class RequestPredicatesAuthorizer extends FileConfigurablePlugin implements Authorizer
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
-
Constructor Summary
Constructors Constructor Description RequestPredicatesAuthorizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Consumer<? super Map<String,Object>>consumeConfiguration()HashMap<String,Set<io.undertow.predicate.Predicate>>getAcl()voidinit(Map<String,Object> confArgs)booleanisAllowed(io.undertow.server.HttpServerExchange exchange)booleanisAuthenticationRequired(io.undertow.server.HttpServerExchange exchange)-
Methods inherited from class org.restheart.plugins.FileConfigurablePlugin
init
-
-
-
-
Method Detail
-
init
public void init(Map<String,Object> confArgs) throws FileNotFoundException, ConfigurationException
-
consumeConfiguration
public Consumer<? super Map<String,Object>> consumeConfiguration()
- Specified by:
consumeConfigurationin classFileConfigurablePlugin
-
isAllowed
public boolean isAllowed(io.undertow.server.HttpServerExchange exchange)
- Specified by:
isAllowedin interfaceAuthorizer- Parameters:
exchange-- Returns:
-
isAuthenticationRequired
public boolean isAuthenticationRequired(io.undertow.server.HttpServerExchange exchange)
- Specified by:
isAuthenticationRequiredin interfaceAuthorizer
-
-