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
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.restheart.plugins.security.Authorizer
org.restheart.plugins.security.Authorizer.TYPE -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidinit()booleanisAllowed(org.restheart.exchange.Request<?> request) booleanisAuthenticationRequired(org.restheart.exchange.Request request) rolePermissions(String role) rootRole()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.restheart.plugins.ConfigurablePlugin
arg, argOrDefault
-
Field Details
-
X_FORWARDED_ACCOUNT_ID
- See Also:
-
X_FORWARDED_ROLE
- See Also:
-
ACL_COLLECTION_NAME
- See Also:
-
$UNAUTHENTICATED
- See Also:
-
-
Constructor Details
-
MongoAclAuthorizer
public MongoAclAuthorizer()
-
-
Method Details
-
init
public void init() -
isAllowed
public boolean isAllowed(org.restheart.exchange.Request<?> request) - Specified by:
isAllowedin interfaceorg.restheart.plugins.security.Authorizer- Parameters:
request-- Returns:
-
isAuthenticationRequired
public boolean isAuthenticationRequired(org.restheart.exchange.Request request) - Specified by:
isAuthenticationRequiredin interfaceorg.restheart.plugins.security.Authorizer
-
rolePermissions
- Parameters:
role-- Returns:
- the acl
-
checkAclCollection
- Throws:
IllegalStateException
-
rootRole
-