Package io.inversion.action.security
Class AuthFilter
- java.lang.Object
-
- io.inversion.Rule<A>
-
- io.inversion.Action<A>
-
- io.inversion.Filter<AuthFilter>
-
- io.inversion.action.security.AuthFilter
-
- All Implemented Interfaces:
java.lang.Comparable<AuthFilter>
public class AuthFilter extends Filter<AuthFilter>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.inversion.Rule
Rule.RuleMatcher
-
-
Field Summary
Fields Modifier and Type Field Description static intAUTH_ACTION_DEFAULT_ORDER_IS_100protected java.util.List<AuthScheme>schemes-
Fields inherited from class io.inversion.Rule
ALL_METHODS, configMap, description, excludeMatchers, excludeOn, includeMatchers, includeOn, log, name, order, params
-
-
Constructor Summary
Constructors Constructor Description AuthFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AuthScheme>getAuthSchemes()voidrun(Request req, Response resp)Override this method with your custom business logic or override one of the http method "doMETHOD" specific handlers.AuthFilterwithAuthScheme(AuthScheme scheme)AuthFilterwithAuthSchemes(java.util.List<AuthScheme> schemes)-
Methods inherited from class io.inversion.Action
configureOp, doDelete, doGet, doPatch, doPost, doPut, getFullIncludePaths, getIncludePaths, isDecoration, joinPaths, joinPaths0, run0, withDecoration
-
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 Detail
-
AUTH_ACTION_DEFAULT_ORDER_IS_100
public static final int AUTH_ACTION_DEFAULT_ORDER_IS_100
- See Also:
- Constant Field Values
-
schemes
protected java.util.List<AuthScheme> schemes
-
-
Method Detail
-
run
public void run(Request req, Response resp) throws ApiException
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<AuthFilter>- Parameters:
req- the Request being servicedresp- the Reponse being generated- Throws:
ApiException
-
getAuthSchemes
public java.util.List<AuthScheme> getAuthSchemes()
-
withAuthSchemes
public AuthFilter withAuthSchemes(java.util.List<AuthScheme> schemes)
-
withAuthScheme
public AuthFilter withAuthScheme(AuthScheme scheme)
-
-