org.springframework.security.oauth2.client.code
Class AuthorizationCodeResourceDetails

java.lang.Object
  extended by org.springframework.security.oauth2.client.provider.BaseOAuth2ProtectedResourceDetails
      extended by org.springframework.security.oauth2.client.code.AuthorizationCodeResourceDetails
All Implemented Interfaces:
OAuth2ProtectedResourceDetails

public class AuthorizationCodeResourceDetails
extends BaseOAuth2ProtectedResourceDetails

Author:
Ryan Heaton

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.springframework.security.oauth2.client.OAuth2ProtectedResourceDetails
OAuth2ProtectedResourceDetails.BearerTokenMethod
 
Constructor Summary
AuthorizationCodeResourceDetails()
           
 
Method Summary
 String getPreEstablishedRedirectUri()
          The redirect URI that has been pre-established with the server.
 String getState()
          The id of the state of the flow, if any.
 String getUserAuthorizationUri()
          The URI to which the user is to be redirected to authorize an access token.
 void setPreEstablishedRedirectUri(String preEstablishedRedirectUri)
          The redirect URI that has been pre-established with the server.
 void setState(String state)
          The id of the state of the flow, if any.
 void setUserAuthorizationUri(String userAuthorizationUri)
          The URI to which the user is to be redirected to authorize an access token.
 
Methods inherited from class org.springframework.security.oauth2.client.provider.BaseOAuth2ProtectedResourceDetails
equals, getAccessTokenUri, getBearerTokenMethod, getBearerTokenName, getClientAuthenticationScheme, getClientId, getClientSecret, getGrantType, getId, getScope, hashCode, isScoped, isSecretRequired, setAccessTokenUri, setBearerTokenMethod, setBearerTokenName, setClientAuthenticationScheme, setClientId, setClientSecret, setGrantType, setId, setScope, setScoped, setSecretRequired
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizationCodeResourceDetails

public AuthorizationCodeResourceDetails()
Method Detail

getState

public String getState()
The id of the state of the flow, if any.

Returns:
The id of the state of the flow, if any.

setState

public void setState(String state)
The id of the state of the flow, if any.

Parameters:
state - The id of the state of the flow, if any.

getUserAuthorizationUri

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

Returns:
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.

Parameters:
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.

Returns:
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.

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


Copyright © 2011. All Rights Reserved.