public class OAuth2ResourceInterceptor extends AbstractInterceptor
Interceptor.Flow| Modifier and Type | Field and Description |
|---|---|
static String |
OA2REDIRECT |
static String |
OAUTH2_ANSWER |
id, name, router| Constructor and Description |
|---|
OAuth2ResourceInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
AuthorizationService |
getAuthService() |
String |
getLoginLocation() |
String |
getLoginPath() |
String |
getPublicURL() |
int |
getRevalidateTokenAfter() |
SessionManager |
getSessionManager() |
String |
getShortDescription() |
void |
handleLoginRequest(Exchange exc) |
Outcome |
handleRequest(Exchange exc) |
boolean |
handleRequest(Exchange exc,
String state,
String publicURL,
SessionManager.Session session) |
Outcome |
handleResponse(Exchange exc) |
void |
init(Router router) |
boolean |
isLoginRequest(Exchange exc) |
void |
setAuthService(AuthorizationService auth) |
void |
setLoginLocation(String login) |
void |
setLoginPath(String loginPath) |
void |
setPublicURL(String publicURL) |
void |
setRevalidateTokenAfter(int revalidateTokenAfter) |
void |
setSessionManager(SessionManager sessionManager) |
getDisplayName, getFlow, getHelpId, getId, getLongDescription, getRouter, getRule, handleAbort, init, setDisplayName, setFlow, setIdpublic static final String OAUTH2_ANSWER
public static final String OA2REDIRECT
public String getLoginLocation()
public void setLoginLocation(String login)
public String getLoginPath()
public void setLoginPath(String loginPath)
public String getPublicURL()
public void setPublicURL(String publicURL)
public AuthorizationService getAuthService()
public void setAuthService(AuthorizationService auth)
public SessionManager getSessionManager()
public void setSessionManager(SessionManager sessionManager)
public int getRevalidateTokenAfter()
public void setRevalidateTokenAfter(int revalidateTokenAfter)
public void init(Router router) throws Exception
init in interface Interceptorinit in class AbstractInterceptorExceptionpublic final Outcome handleRequest(Exchange exc) throws Exception
handleRequest in interface InterceptorhandleRequest in class AbstractInterceptorExceptionpublic Outcome handleResponse(Exchange exc) throws Exception
handleResponse in interface InterceptorhandleResponse in class AbstractInterceptorExceptionpublic boolean isLoginRequest(Exchange exc)
public boolean handleRequest(Exchange exc, String state, String publicURL, SessionManager.Session session) throws Exception
Exceptionpublic String getShortDescription()
getShortDescription in interface InterceptorgetShortDescription in class AbstractInterceptorCopyright © 2021. All Rights Reserved.