|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectoauthP5.apis.DefaultApi10a
public abstract class DefaultApi10a
Default implementation of the OAuth protocol, version 1.0a This class is meant to be extended by concrete implementations of the API, providing the endpoints and endpoint-http-verbs. If your Api adheres to the 1.0a protocol correctly, you just need to extend this class and define the getters for your endpoints. If your Api does something a bit different, you can override the different extractors or services, in order to fine-tune the process. Please read the javadocs of the interfaces to get an idea of what to do.
Constructor Summary | |
---|---|
DefaultApi10a()
|
Method Summary | |
---|---|
OAuthService |
createService(OAuthConfig config)
Returns the OAuthService for this Api |
abstract String |
getAccessTokenEndpoint()
Returns the URL that receives the access token requests. |
AccessTokenExtractor |
getAccessTokenExtractor()
Returns the access token extractor. |
Verb |
getAccessTokenVerb()
Returns the verb for the access token endpoint (defaults to POST) |
abstract String |
getAuthorizationUrl(Token requestToken)
Returns the URL where you should redirect your users to authenticate your application. |
BaseStringExtractor |
getBaseStringExtractor()
Returns the base string extractor. |
HeaderExtractor |
getHeaderExtractor()
Returns the header extractor. |
abstract String |
getRequestTokenEndpoint()
Returns the URL that receives the request token requests. |
RequestTokenExtractor |
getRequestTokenExtractor()
Returns the request token extractor. |
Verb |
getRequestTokenVerb()
Returns the verb for the request token endpoint (defaults to POST) |
SignatureService |
getSignatureService()
Returns the signature service. |
TimestampService |
getTimestampService()
Returns the timestamp service. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultApi10a()
Method Detail |
---|
public AccessTokenExtractor getAccessTokenExtractor()
public BaseStringExtractor getBaseStringExtractor()
public HeaderExtractor getHeaderExtractor()
public RequestTokenExtractor getRequestTokenExtractor()
public SignatureService getSignatureService()
public TimestampService getTimestampService()
public Verb getAccessTokenVerb()
public Verb getRequestTokenVerb()
public abstract String getRequestTokenEndpoint()
public abstract String getAccessTokenEndpoint()
public abstract String getAuthorizationUrl(Token requestToken)
requestToken
- the request token you need to authorize
public OAuthService createService(OAuthConfig config)
OAuthService
for this Api
createService
in interface Api
apiKey
- KeyapiSecret
- Api Secretcallback
- OAuth callback (either URL or 'oob')scope
- OAuth scope (optional)
OAuthService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |