org.mule.security.oauth
Interface OAuthAdapter

All Superinterfaces:
OnNoTokenPolicyAware, Serializable
All Known Subinterfaces:
OAuth1Adapter, OAuth2Adapter

public interface OAuthAdapter
extends Serializable, OnNoTokenPolicyAware


Method Summary
 String getOauthVerifier()
          Retrieve OAuth verifier
 void hasBeenAuthorized()
          Checks if the adapter has been authorized.
 void setAccessToken(String accessToken)
           
 void setAccessTokenUrl(String url)
           
 void setAuthorizationUrl(String authorizationUrl)
           
 void setOauthVerifier(String value)
          Set OAuth verifier
 
Methods inherited from interface org.mule.security.oauth.OnNoTokenPolicyAware
getOnNoTokenPolicy, setOnNoTokenPolicy
 

Method Detail

getOauthVerifier

String getOauthVerifier()
Retrieve OAuth verifier

Returns:
A String representing the OAuth verifier

setOauthVerifier

void setOauthVerifier(String value)
Set OAuth verifier

Parameters:
value - OAuth verifier to set

setAccessTokenUrl

void setAccessTokenUrl(String url)

setAccessToken

void setAccessToken(String accessToken)

setAuthorizationUrl

void setAuthorizationUrl(String authorizationUrl)

hasBeenAuthorized

void hasBeenAuthorized()
                       throws org.mule.common.security.oauth.exception.NotAuthorizedException
Checks if the adapter has been authorized. If it was not, then in trows NotAuthorizedException

Throws:
org.mule.common.security.oauth.exception.NotAuthorizedException - if the adapter hasn't been authorized


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.