Modifier and Type | Class and Description |
---|---|
class |
BaseProtectedResourceDetails
Basic implementation of protected resource details.
|
Modifier and Type | Method and Description |
---|---|
ProtectedResourceDetails |
AccessTokenRequiredException.getResource() |
ProtectedResourceDetails |
InMemoryProtectedResourceDetailsService.loadProtectedResourceDetailsById(String id) |
ProtectedResourceDetails |
ProtectedResourceDetailsService.loadProtectedResourceDetailsById(String id)
Load the details of a protected resource by id.
|
Modifier and Type | Method and Description |
---|---|
Map<String,? extends ProtectedResourceDetails> |
InMemoryProtectedResourceDetailsService.getResourceDetailsStore() |
Modifier and Type | Method and Description |
---|---|
OAuthConsumerToken |
OAuthConsumerSupport.getAccessToken(ProtectedResourceDetails resource,
OAuthConsumerToken requestToken,
String verifier)
Get an access token for a protected resource.
|
String |
OAuthConsumerSupport.getAuthorizationHeader(ProtectedResourceDetails details,
OAuthConsumerToken accessToken,
URL url,
String httpMethod,
Map<String,String> additionalParameters)
Get the authorization header using the given access token that should be applied to the specified URL.
|
String |
OAuthConsumerSupport.getOAuthQueryString(ProtectedResourceDetails details,
OAuthConsumerToken accessToken,
URL url,
String httpMethod,
Map<String,String> additionalParameters)
Get the query string that is to be used in the given request.
|
OAuthConsumerToken |
OAuthConsumerSupport.getUnauthorizedRequestToken(ProtectedResourceDetails resource,
String callback)
Get an unauthorized request token for a protected resource.
|
Modifier and Type | Method and Description |
---|---|
void |
InMemoryProtectedResourceDetailsService.setResourceDetailsStore(Map<String,? extends ProtectedResourceDetails> resourceDetailsStore) |
Constructor and Description |
---|
AccessTokenRequiredException(ProtectedResourceDetails resource) |
AccessTokenRequiredException(String msg,
ProtectedResourceDetails resource) |
AccessTokenRequiredException(String msg,
ProtectedResourceDetails resource,
Throwable t) |
Modifier and Type | Method and Description |
---|---|
ProtectedResourceDetails |
OAuthRestTemplate.getResource() |
Modifier and Type | Method and Description |
---|---|
protected URL |
CoreOAuthConsumerSupport.configureURLForProtectedAccess(URL url,
OAuthConsumerToken requestToken,
ProtectedResourceDetails details,
String httpMethod,
Map<String,String> additionalParameters)
Internal use of configuring the URL for protected access, the resource details already having been loaded.
|
OAuthConsumerToken |
CoreOAuthConsumerSupport.getAccessToken(ProtectedResourceDetails details,
OAuthConsumerToken requestToken,
String verifier) |
String |
CoreOAuthConsumerSupport.getAuthorizationHeader(ProtectedResourceDetails details,
OAuthConsumerToken accessToken,
URL url,
String httpMethod,
Map<String,String> additionalParameters) |
String |
CoreOAuthConsumerSupport.getOAuthQueryString(ProtectedResourceDetails details,
OAuthConsumerToken accessToken,
URL url,
String httpMethod,
Map<String,String> additionalParameters) |
protected OAuthConsumerToken |
CoreOAuthConsumerSupport.getTokenFromProvider(ProtectedResourceDetails details,
URL tokenURL,
String httpMethod,
OAuthConsumerToken requestToken,
Map<String,String> additionalParameters)
Get the consumer token with the given parameters and URL.
|
OAuthConsumerToken |
CoreOAuthConsumerSupport.getUnauthorizedRequestToken(ProtectedResourceDetails details,
String callback) |
protected Map<String,Set<CharSequence>> |
CoreOAuthConsumerSupport.loadOAuthParameters(ProtectedResourceDetails details,
URL requestURL,
OAuthConsumerToken requestToken,
String httpMethod,
Map<String,String> additionalParameters)
Loads the OAuth parameters for the given resource at the given URL and the given token.
|
protected InputStream |
CoreOAuthConsumerSupport.readResource(ProtectedResourceDetails details,
URL url,
String httpMethod,
OAuthConsumerToken token,
Map<String,String> additionalParameters,
Map<String,String> additionalRequestHeaders)
Read a resource.
|
Constructor and Description |
---|
OAuthClientHttpRequestFactory(org.springframework.http.client.ClientHttpRequestFactory delegate,
ProtectedResourceDetails resource,
OAuthConsumerSupport support) |
OAuthRestTemplate(org.springframework.http.client.ClientHttpRequestFactory requestFactory,
ProtectedResourceDetails resource) |
OAuthRestTemplate(ProtectedResourceDetails resource) |
Modifier and Type | Method and Description |
---|---|
protected ProtectedResourceDetails |
OAuthConsumerContextFilter.checkForResourceThatNeedsAuthorization(Exception ex)
Check the given exception for the resource that needs authorization.
|
Modifier and Type | Method and Description |
---|---|
protected String |
OAuthConsumerContextFilter.getUserAuthorizationRedirectURL(ProtectedResourceDetails details,
OAuthConsumerToken requestToken,
String callbackURL)
Get the URL to which to redirect the user for authorization of protected resources.
|
Modifier and Type | Method and Description |
---|---|
URLStreamHandler |
DefaultOAuthURLStreamHandlerFactory.getHttpsStreamHandler(ProtectedResourceDetails resourceDetails,
OAuthConsumerToken accessToken,
OAuthConsumerSupport support,
String httpMethod,
Map<String,String> additionalParameters) |
URLStreamHandler |
OAuthURLStreamHandlerFactory.getHttpsStreamHandler(ProtectedResourceDetails resourceDetails,
OAuthConsumerToken accessToken,
OAuthConsumerSupport support,
String httpMethod,
Map<String,String> additionalParameters)
Get the handler for an HTTPS stream.
|
URLStreamHandler |
DefaultOAuthURLStreamHandlerFactory.getHttpStreamHandler(ProtectedResourceDetails resourceDetails,
OAuthConsumerToken accessToken,
OAuthConsumerSupport support,
String httpMethod,
Map<String,String> additionalParameters) |
URLStreamHandler |
OAuthURLStreamHandlerFactory.getHttpStreamHandler(ProtectedResourceDetails resourceDetails,
OAuthConsumerToken accessToken,
OAuthConsumerSupport support,
String httpMethod,
Map<String,String> additionalParameters)
Get the handler for an HTTP stream.
|
Constructor and Description |
---|
OAuthOverHttpsURLStreamHandler(ProtectedResourceDetails resourceDetails,
OAuthConsumerToken accessToken,
OAuthConsumerSupport support,
String httpMethod,
Map<String,String> additionalParameters) |
OAuthOverHttpURLStreamHandler(ProtectedResourceDetails resourceDetails,
OAuthConsumerToken accessToken,
OAuthConsumerSupport support,
String httpMethod,
Map<String,String> additionalParameters) |
Copyright © 2019. All rights reserved.