public abstract class AbstractRedirectResourceDetails extends BaseOAuth2ProtectedResourceDetails
Constructor and Description |
---|
AbstractRedirectResourceDetails() |
Modifier and Type | Method and Description |
---|---|
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.
|
equals, getAccessTokenUri, getAuthenticationScheme, getClientAuthenticationScheme, getClientId, getClientSecret, getGrantType, getId, getScope, getTokenName, hashCode, isAuthenticationRequired, isClientOnly, isScoped, setAccessTokenUri, setAuthenticationScheme, setClientAuthenticationScheme, setClientId, setClientSecret, setGrantType, setId, setScope, setTokenName
public void setUseCurrentUri(boolean useCurrentUri)
useCurrentUri
- the flag value to set (default true)public boolean isUseCurrentUri()
public String getUserAuthorizationUri()
public void setUserAuthorizationUri(String userAuthorizationUri)
userAuthorizationUri
- The URI to which the user is to be redirected to authorize an access token.public String getPreEstablishedRedirectUri()
public void setPreEstablishedRedirectUri(String preEstablishedRedirectUri)
preEstablishedRedirectUri
- The redirect URI that has been pre-established with the server.public String getRedirectUri(AccessTokenRequest request)
request
- the current DefaultAccessTokenRequest
Copyright © 2019. All rights reserved.