Package io.inversion.action.security
Class AclFilter
- All Implemented Interfaces:
Comparable<AclFilter>
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
ALL_METHODS, configMap, description, excludeMatchers, excludeOn, includeMatchers, includeOn, log, name, order, params -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorRequireAllPerms(String permissions, String... includedOn) orRequireAllRoles(String roles, String... includedOn) orRequireAllScopes(String scopes, String... includedOn) orRequireOnePerm(String permissions, String... includedOn) orRequireOneRole(String roles, String... includedOn) orRequireOneScope(String scopes, String... includedOn) 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.Action
configureOp, doDelete, doGet, doPatch, doPost, doPut, getFullIncludePaths, getIncludePaths, isDecoration, joinPaths, joinPaths0, run0, withDecorationMethods 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
-
aclRules
-
-
Constructor Details
-
AclFilter
public AclFilter()
-
-
Method Details
-
orRequireAllPerms
-
orRequireOnePerm
-
orRequireAllRoles
-
orRequireOneRole
-
orRequireAllScopes
-
orRequireOneScope
-
withAclRules
-
getAclRules
-
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<AclFilter>- Parameters:
req- the Request being servicedresp- the Reponse being generated- Throws:
ApiException
-