|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectoauthP5.oauth.OAuth10aServiceImpl
public class OAuth10aServiceImpl
OAuth 1.0a implementation of OAuthService
Constructor Summary | |
---|---|
OAuth10aServiceImpl(DefaultApi10a api,
OAuthConfig config)
Default constructor |
Method Summary | |
---|---|
Token |
getAccessToken(Token requestToken,
Verifier verifier)
Retrieve the access token |
String |
getAuthorizationUrl(Token requestToken)
Returns the URL where you should redirect your users to authenticate your application. |
Token |
getRequestToken()
Retrieve the request token. |
String |
getVersion()
Returns the OAuth version of the service. |
void |
signRequest(Token token,
OAuthRequest request)
Signs am OAuth request |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OAuth10aServiceImpl(DefaultApi10a api, OAuthConfig config)
api
- OAuth1.0a api informationconfig
- OAuth 1.0a configuration param objectMethod Detail |
---|
public Token getRequestToken()
getRequestToken
in interface OAuthService
public Token getAccessToken(Token requestToken, Verifier verifier)
getAccessToken
in interface OAuthService
requestToken
- request token (obtained previously)verifier
- verifier code
public void signRequest(Token token, OAuthRequest request)
signRequest
in interface OAuthService
token
- access token (obtained previously)request
- request to signpublic String getVersion()
getVersion
in interface OAuthService
public String getAuthorizationUrl(Token requestToken)
getAuthorizationUrl
in interface OAuthService
requestToken
- the request token you need to authorize
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |