org.springframework.security.oauth2.client.resource
类 UserRedirectRequiredException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.lang.RuntimeException
              继承者 org.springframework.security.oauth2.client.resource.UserRedirectRequiredException
所有已实现的接口:
Serializable

public class UserRedirectRequiredException
extends RuntimeException

Special exception thrown when a user redirect is required in order to obtain an OAuth2 access token.

作者:
Ryan Heaton
另请参见:
序列化表格

构造方法摘要
UserRedirectRequiredException(String redirectUri, Map<String,String> requestParams)
           
 
方法摘要
 String getRedirectUri()
          The uri to which the user is to be redirected.
 Map<String,String> getRequestParams()
          The request parameters that are to be appended to the uri.
 String getStateKey()
          The key to the state to preserve.
 Object getStateToPreserve()
          Some state that needs to be preserved and set up in the security context when the user returns.
 void setStateKey(String stateKey)
          The key to the state to preserve.
 void setStateToPreserve(Object stateToPreserve)
          The state that needs to be preserved and set up in the security context when the user returns.
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

UserRedirectRequiredException

public UserRedirectRequiredException(String redirectUri,
                                     Map<String,String> requestParams)
方法详细信息

getRedirectUri

public String getRedirectUri()
The uri to which the user is to be redirected.

返回:
The uri to which the user is to be redirected.

getRequestParams

public Map<String,String> getRequestParams()
The request parameters that are to be appended to the uri.

返回:
The request parameters that are to be appended to the uri.

getStateKey

public String getStateKey()
The key to the state to preserve.

返回:
The key to the state to preserve.

setStateKey

public void setStateKey(String stateKey)
The key to the state to preserve.

参数:
stateKey - The key to the state to preserve.

getStateToPreserve

public Object getStateToPreserve()
Some state that needs to be preserved and set up in the security context when the user returns.

返回:
The state that needs to be preserved.

setStateToPreserve

public void setStateToPreserve(Object stateToPreserve)
The state that needs to be preserved and set up in the security context when the user returns.

参数:
stateToPreserve - The state.


Copyright © 2013. All rights reserved.