|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OAuth1Manager
Method Summary | |
---|---|
String |
buildAuthorizeUrl(OAuth1Adapter adapter,
Map<String,String> extraParameters,
String requestTokenUrl,
String accessTokenUrl,
String authorizationUrl,
String redirectUri)
Builds the authorization url to initiate the OAuth dance |
void |
fetchAccessToken(OAuth1Adapter adapter,
String requestTokenUrl,
String accessTokenUrl,
String authorizationUrl,
String redirectUri)
Retrieves the access token for the given adapter with the given parameters. |
void |
hasBeenAuthorized(OAuth1Adapter adapter)
Determines if the adapter has been authorized or not by checking its access token |
void |
reset(OAuth1Adapter adapter)
Sets the adapter to a blank, unatuhorized state |
boolean |
restoreAccessToken(OAuth1Adapter adapter)
Restores the access token that belongs to the given adapter and sets its value into it. |
Methods inherited from interface org.mule.security.oauth.callback.HttpCallbackAdapter |
---|
getAsync, getConnector, getDomain, getLocalPort, getPath, getRemotePort, setAsync, setConnector, setDomain, setLocalPort, setPath, setRemotePort |
Method Detail |
---|
String buildAuthorizeUrl(OAuth1Adapter adapter, Map<String,String> extraParameters, String requestTokenUrl, String accessTokenUrl, String authorizationUrl, String redirectUri) throws org.mule.common.security.oauth.exception.UnableToAcquireRequestTokenException
adapter
- the adapter that is going to be authorizedextraParameters
- provider specific extra parametersrequestTokenUrl
- the url of the request token serveraccessTokenUrl
- the url of the access token serverauthorizationUrl
- the url of the authorization serverredirectUri
- the redirection uri
org.mule.common.security.oauth.exception.UnableToAcquireRequestTokenException
boolean restoreAccessToken(OAuth1Adapter adapter)
adapter
- the adapter which access token is to be restored
true
if the access token was succesfully restored.
false
otherwise.void fetchAccessToken(OAuth1Adapter adapter, String requestTokenUrl, String accessTokenUrl, String authorizationUrl, String redirectUri) throws org.mule.common.security.oauth.exception.UnableToAcquireAccessTokenException
adapter
- the adapter which access token you wantrequestTokenUrl
- the url of the request token serveraccessTokenUrl
- the url of the access token serverauthorizationUrl
- the url of the authorization serverredirectUri
- the redirection uri
org.mule.common.security.oauth.exception.UnableToAcquireAccessTokenException
void hasBeenAuthorized(OAuth1Adapter adapter) throws org.mule.common.security.oauth.exception.NotAuthorizedException
adapter
- the adapter to be checked
org.mule.common.security.oauth.exception.NotAuthorizedException
- if the adapter hasn't been authorizedvoid reset(OAuth1Adapter adapter)
adapter
- the adapter to be reset
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |