public interface OAuth1Manager extends HttpCallbackAdapter
| Modifier and Type | Method and Description |
|---|---|
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.
|
Connector |
getConnector()
Retrieves connector
|
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.
|
getAsync, getDomain, getLocalPort, getPath, getRemotePort, setAsync, setConnector, setDomain, setLocalPort, setPath, setRemotePortString 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 uriorg.mule.common.security.oauth.exception.UnableToAcquireRequestTokenExceptionboolean restoreAccessToken(OAuth1Adapter adapter)
adapter - the adapter which access token is to be restoredtrue 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 uriorg.mule.common.security.oauth.exception.UnableToAcquireAccessTokenExceptionvoid hasBeenAuthorized(OAuth1Adapter adapter) throws org.mule.common.security.oauth.exception.NotAuthorizedException
adapter - the adapter to be checkedorg.mule.common.security.oauth.exception.NotAuthorizedException - if the adapter hasn't been authorizedvoid reset(OAuth1Adapter adapter)
adapter - the adapter to be resetConnector getConnector()
HttpCallbackAdaptergetConnector in interface HttpCallbackAdapterCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.