Package io.inversion.action.security
Class AclRule
- All Implemented Interfaces:
Comparable<AclRule>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.inversion.Rule
Rule.RuleMatcher -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanFields inherited from class io.inversion.Rule
ALL_METHODS, configMap, description, excludeMatchers, excludeOn, includeMatchers, includeOn, log, name, order, params -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AclRulegetRoles()booleanisAllow()booleanbooleanbooleanbooleanisInfo()static AclRulerequireAllPerms(String permissions, String... includedOn) static AclRulerequireAllRoles(String roles, String... includedOn) static AclRulerequireAllScopes(String scopes, String... includedOn) static AclRulerequireOnePerm(String permissions, String... includedOn) static AclRulerequireOneRole(String roles, String... includedOn) static AclRulerequireOneScope(String scopes, String... includedOn) booleanruleMatches(Request req) withAllow(boolean allow) withAllPermissionsMustMatch(boolean allPermissionsMustMatch) withAllRolesMustMatch(boolean allRolesMustMatch) withAllScopesMustMatch(boolean allScopesMustMatch) withInfo(boolean info) withPermissions(String... permissions) withScopes(String... scopes) Methods inherited from class io.inversion.Rule
afterWiringComplete, checkLazyConfig, compareTo, doLazyConfig, getAllExcludePaths, getAllIncludeMethods, getAllIncludePaths, getDefaultIncludeMatchers, getDescription, getExcludeMatchers, getIncludeMatchers, getName, getOrder, getParams, match, match, matches, matches, toString, withDescription, withExcludeOn, withExcludeOn, withIncludeOn, withIncludeOn, withName, withOrder, withParam, withParams
-
Field Details
-
permissions
-
roles
-
scopes
-
allow
protected boolean allow -
info
protected boolean info -
allRolesMustMatch
protected boolean allRolesMustMatch -
allPermissionsMustMatch
protected boolean allPermissionsMustMatch -
allScopesMustMatch
protected boolean allScopesMustMatch
-
-
Constructor Details
-
AclRule
public AclRule()
-
-
Method Details
-
allowAll
-
requireAllPerms
-
requireOnePerm
-
requireAllRoles
-
requireOneRole
-
requireAllScopes
-
requireOneScope
-
ruleMatches
-
getRoles
-
withRoles
-
getPermissions
-
withPermissions
-
getScopes
-
withScopes
-
isAllow
public boolean isAllow() -
withAllow
-
isInfo
public boolean isInfo() -
withInfo
-
isAllRolesMustMatch
public boolean isAllRolesMustMatch() -
withAllRolesMustMatch
-
isAllPermissionsMustMatch
public boolean isAllPermissionsMustMatch() -
withAllPermissionsMustMatch
-
isAllScopesMustMatch
public boolean isAllScopesMustMatch() -
withAllScopesMustMatch
-