Class RequireAuth
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.oauth2client.RequireAuth
- All Implemented Interfaces:
Interceptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.predic8.membrane.core.interceptor.Interceptor
Interceptor.Flow -
Field Summary
Fields inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
name, router -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetScope()handleRequest(Exchange exc) voidbooleanvoidsetErrorStatus(int errorStatus) voidsetExpectedAud(String expectedAud) voidsetOauth2(OAuth2Resource2Interceptor oauth2) voidsetRequired(boolean required) voidMethods inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
getDisplayName, getFlow, getHelpId, getLongDescription, getMessage, getRouter, getRule, getShortDescription, handleAbort, handleResponse, init, setDisplayName, setFlow
-
Constructor Details
-
RequireAuth
public RequireAuth()
-
-
Method Details
-
init
- Specified by:
initin interfaceInterceptor- Overrides:
initin classAbstractInterceptor- Throws:
Exception
-
handleRequest
- Specified by:
handleRequestin interfaceInterceptor- Overrides:
handleRequestin classAbstractInterceptor- Throws:
Exception
-
getExpectedAud
-
setExpectedAud
-
getOauth2
-
setOauth2
-
setRequired
public void setRequired(boolean required) -
isRequired
public boolean isRequired() -
getErrorStatus
-
setErrorStatus
public void setErrorStatus(int errorStatus) -
getScope
-
setScope
-