Package io.inversion.action.security
Class AclAction
- All Implemented Interfaces:
Comparable<AclAction>
The AclAction secures an API by making sure that a requests matches one or
more declared AclRules
AclRules specify the roles and permissions that a user must have to access specific method/path combinations and can also specify input/output parameters that are either required or restricted
-
Nested Class Summary
Nested classes/interfaces inherited from class io.inversion.Rule
Rule.RuleMatcher -
Field Summary
FieldsFields inherited from class io.inversion.Rule
configMap, configStr, excludeMatchers, excludeOn, includeMatchers, includeOn, log, name, order -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorRequireAllPerms(String httpMethods, String includePaths, String permission1, String... permissionsN) orRequireAllRoles(String httpMethods, String includePaths, String role1, String... rolesN) orRequireOnePerm(String httpMethods, String includePaths, String permission1, String... permissionsN) orRequireOneRole(String httpMethods, String includePaths, String role1, String... rolesN) voidOverride this method with your custom business logic or override one of the http method "doMETHOD" specific handlers.withAclRules(AclRule... acls) Methods inherited from class io.inversion.Rule
checkLazyConfig, compareTo, doLazyConfig, getAllExcludePaths, getAllIncludePaths, getConfig, getConfig, getConfigKeys, getDefaultIncludeMatch, getExcludeMatchers, getIncludeMatchers, getName, getOrder, match, matches, matches, toString, withConfig, withExcludeOn, withExcludeOn, withExcludeOn, withIncludeOn, withIncludeOn, withIncludeOn, withName, withOrder
-
Field Details
-
aclRules
-
-
Constructor Details
-
AclAction
public AclAction()
-
-
Method Details
-
orRequireAllPerms
-
orRequireOnePerm
-
orRequireAllRoles
-
orRequireOneRole
-
withAclRules
-
run
Description copied from class:ActionOverride this method with your custom business logic or override one of the http method "doMETHOD" specific handlers.- Overrides:
runin classAction<AclAction>- Parameters:
req- the Request being servicedresp- the Reponse being generated- Throws:
ApiException
-