|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler
org.springframework.security.oauth.provider.filter.UserAuthorizationSuccessfulAuthenticationHandler
public class UserAuthorizationSuccessfulAuthenticationHandler
Successful AuthenticationHandler that gets called when a user complete authorization of a resource. If the callback URL is oob, the request is handled by the SimpleUrlAuthenticationSuccessHandler using the default success URL. Otherwise, the oauth_verifier and oauth_token parmeters are appended to the callback URL and the user is redirected.
| Field Summary |
|---|
| Fields inherited from class org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler |
|---|
logger |
| Constructor Summary | |
|---|---|
UserAuthorizationSuccessfulAuthenticationHandler()
|
|
UserAuthorizationSuccessfulAuthenticationHandler(String s)
|
|
| Method Summary | |
|---|---|
String |
getCallbackParameterName()
The name of the request parameter that supplies the callback URL. |
String |
getTokenParameterName()
The name of the request parameter that supplies the token id. |
boolean |
isRequire10a()
Whether to require 1.0a support. |
void |
onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication)
|
void |
setCallbackParameterName(String callbackParameterName)
The name of the request parameter that supplies the callback URL. |
void |
setRequire10a(boolean require10a)
Whether to require 1.0a support. |
void |
setTokenIdParameterName(String tokenIdParameterName)
The name of the request parameter that supplies the token id. |
| Methods inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler |
|---|
clearAuthenticationAttributes |
| Methods inherited from class org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler |
|---|
determineTargetUrl, getDefaultTargetUrl, getRedirectStrategy, getTargetUrlParameter, handle, isAlwaysUseDefaultTargetUrl, setAlwaysUseDefaultTargetUrl, setDefaultTargetUrl, setRedirectStrategy, setTargetUrlParameter, setUseReferer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserAuthorizationSuccessfulAuthenticationHandler()
public UserAuthorizationSuccessfulAuthenticationHandler(String s)
| Method Detail |
|---|
public void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication)
throws IOException,
javax.servlet.ServletException
onAuthenticationSuccess in interface org.springframework.security.web.authentication.AuthenticationSuccessHandleronAuthenticationSuccess in class org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandlerIOException
javax.servlet.ServletExceptionpublic String getTokenParameterName()
public void setTokenIdParameterName(String tokenIdParameterName)
tokenIdParameterName - The name of the request parameter that supplies the token id.public boolean isRequire10a()
public void setRequire10a(boolean require10a)
require10a - Whether to require 1.0a support.public String getCallbackParameterName()
public void setCallbackParameterName(String callbackParameterName)
callbackParameterName - The name of the request parameter that supplies the callback URL.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||