org.springframework.security.oauth2.client.token.grant.redirect
类 AbstractRedirectResourceDetails

java.lang.Object
  继承者 org.springframework.security.oauth2.client.resource.BaseOAuth2ProtectedResourceDetails
      继承者 org.springframework.security.oauth2.client.token.grant.redirect.AbstractRedirectResourceDetails
所有已实现的接口:
OAuth2ProtectedResourceDetails
直接已知子类:
AuthorizationCodeResourceDetails, ImplicitResourceDetails

public abstract class AbstractRedirectResourceDetails
extends BaseOAuth2ProtectedResourceDetails

作者:
Dave Syer

构造方法摘要
AbstractRedirectResourceDetails()
           
 
方法摘要
 String getPreEstablishedRedirectUri()
          The redirect URI that has been pre-established with the server.
 String getRedirectUri(AccessTokenRequest request)
          Extract a redirect uri from the resource and/or the current request.
 String getUserAuthorizationUri()
          The URI to which the user is to be redirected to authorize an access token.
 boolean isUseCurrentUri()
          Flag to signal that the current URI (if set) in the request should be used in preference to the pre-established redirect URI.
 void setPreEstablishedRedirectUri(String preEstablishedRedirectUri)
          The redirect URI that has been pre-established with the server.
 void setUseCurrentUri(boolean useCurrentUri)
          Flag to signal that the current URI (if set) in the request should be used in preference to the pre-established redirect URI.
 void setUserAuthorizationUri(String userAuthorizationUri)
          The URI to which the user is to be redirected to authorize an access token.
 
从类 org.springframework.security.oauth2.client.resource.BaseOAuth2ProtectedResourceDetails 继承的方法
equals, getAccessTokenUri, getAuthenticationScheme, getClientAuthenticationScheme, getClientId, getClientSecret, getGrantType, getId, getScope, getTokenName, hashCode, isAuthenticationRequired, isClientOnly, isScoped, setAccessTokenUri, setAuthenticationScheme, setClientAuthenticationScheme, setClientId, setClientSecret, setGrantType, setId, setScope, setTokenName
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

AbstractRedirectResourceDetails

public AbstractRedirectResourceDetails()
方法详细信息

setUseCurrentUri

public void setUseCurrentUri(boolean useCurrentUri)
Flag to signal that the current URI (if set) in the request should be used in preference to the pre-established redirect URI.

参数:
useCurrentUri - the flag value to set (default true)

isUseCurrentUri

public boolean isUseCurrentUri()
Flag to signal that the current URI (if set) in the request should be used in preference to the pre-established redirect URI.

返回:
the flag value

getUserAuthorizationUri

public String getUserAuthorizationUri()
The URI to which the user is to be redirected to authorize an access token.

返回:
The URI to which the user is to be redirected to authorize an access token.

setUserAuthorizationUri

public void setUserAuthorizationUri(String userAuthorizationUri)
The URI to which the user is to be redirected to authorize an access token.

参数:
userAuthorizationUri - The URI to which the user is to be redirected to authorize an access token.

getPreEstablishedRedirectUri

public String getPreEstablishedRedirectUri()
The redirect URI that has been pre-established with the server. If present, the redirect URI will be omitted from the user authorization request because the server doesn't need to know it.

返回:
The redirect URI that has been pre-established with the server.

setPreEstablishedRedirectUri

public void setPreEstablishedRedirectUri(String preEstablishedRedirectUri)
The redirect URI that has been pre-established with the server. If present, the redirect URI will be omitted from the user authorization request because the server doesn't need to know it.

参数:
preEstablishedRedirectUri - The redirect URI that has been pre-established with the server.

getRedirectUri

public String getRedirectUri(AccessTokenRequest request)
Extract a redirect uri from the resource and/or the current request.

参数:
request - the current DefaultAccessTokenRequest
返回:
a redirect uri if one can be established


Copyright © 2013. All rights reserved.