|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OAuthConsumerSupport
Consumer-side support for OAuth.
| Method Summary | |
|---|---|
java.net.URL |
configureURLForProtectedAccess(java.net.URL url,
OAuthConsumerToken accessToken,
java.lang.String httpMethod)
Create a configured URL. |
OAuthConsumerToken |
getAccessToken(OAuthConsumerToken requestToken)
Get an access token for a protected resource. |
java.lang.String |
getAuthorizationHeader(ProtectedResourceDetails details,
OAuthConsumerToken accessToken,
java.net.URL url,
java.lang.String httpMethod)
Get the authorization header using the given access token that should be applied to the specified URL. |
java.lang.String |
getOAuthQueryString(ProtectedResourceDetails details,
OAuthConsumerToken accessToken,
java.net.URL url,
java.lang.String httpMethod)
Get the query string that is to be used in the given request. |
OAuthConsumerToken |
getUnauthorizedRequestToken(java.lang.String resourceId)
Get an unauthorized request token for a protected resource. |
java.io.InputStream |
readProtectedResource(java.net.URL url,
OAuthConsumerToken accessToken,
java.lang.String httpMethod)
Read a protected resource from the given URL using the specified access token and HTTP method. |
| Method Detail |
|---|
OAuthConsumerToken getUnauthorizedRequestToken(java.lang.String resourceId)
throws OAuthRequestFailedException
resourceId - The id of the protected resource for which to get a consumer token.
OAuthRequestFailedException
OAuthConsumerToken getAccessToken(OAuthConsumerToken requestToken)
throws OAuthRequestFailedException
requestToken - The (presumably authorized) request token.
OAuthRequestFailedException
java.io.InputStream readProtectedResource(java.net.URL url,
OAuthConsumerToken accessToken,
java.lang.String httpMethod)
throws OAuthRequestFailedException
url - The URL.accessToken - The access token.httpMethod - The HTTP method.
OAuthRequestFailedException
java.net.URL configureURLForProtectedAccess(java.net.URL url,
OAuthConsumerToken accessToken,
java.lang.String httpMethod)
throws OAuthRequestFailedException
url - The base URL.accessToken - The access token.httpMethod - The HTTP method.
OAuthRequestFailedException
java.lang.String getAuthorizationHeader(ProtectedResourceDetails details,
OAuthConsumerToken accessToken,
java.net.URL url,
java.lang.String httpMethod)
details - The details of the protected resource.accessToken - The access token.url - The URL of the request.httpMethod - The http method for the protected resource.
java.lang.String getOAuthQueryString(ProtectedResourceDetails details,
OAuthConsumerToken accessToken,
java.net.URL url,
java.lang.String httpMethod)
details - The resource details.accessToken - The access token.url - The URLhttpMethod - The http method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||