|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OAuth2Adapter
| Method Summary | |
|---|---|
String |
authorize(Map<String,String> extraParameters,
String accessTokenUrl,
String redirectUri)
Build authorization URL and create the inbound endpoint for the callback |
void |
fetchAccessToken(String accessTokenUrl)
Acquire access token and secret |
Pattern |
getAccessCodePattern()
Returns a compiled Pattern which can be used to
extract the access code from a String |
String |
getAccessToken()
Retrieve access token |
Pattern |
getExpirationTimePattern()
Returns a compiled Pattern which can be used to
extract the expiration time from a String |
String |
getRefreshToken()
Retrieve refresh token |
Pattern |
getRefreshTokenPattern()
Returns a compiled Pattern which can be used to
extract the refresh token from a String |
boolean |
hasTokenExpired()
|
void |
refreshAccessToken(String accessTokenId)
|
void |
setConsumerKey(String consumerKey)
|
void |
setConsumerSecret(String consumerSecret)
|
void |
setExpiration(Date value)
Sets expiration |
void |
setRefreshToken(String refreshToken)
Set refresh token |
| Methods inherited from interface org.mule.security.oauth.OAuthAdapter |
|---|
getOauthVerifier, hasBeenAuthorized, setAccessToken, setAccessTokenUrl, setAuthorizationUrl, setOauthVerifier |
| Methods inherited from interface org.mule.security.oauth.OnNoTokenPolicyAware |
|---|
getOnNoTokenPolicy, setOnNoTokenPolicy |
| Methods inherited from interface org.mule.security.oauth.OAuth2Connector |
|---|
getAccessTokenRegex, getAccessTokenUrl, getAuthorizationParameters, getAuthorizationUrl, getConsumerKey, getConsumerSecret, getExpirationRegex, getRefreshTokenRegex, getScope, getVerifierRegex, postAuth |
| Methods inherited from interface org.mule.api.NameableObject |
|---|
setName |
| Methods inherited from interface org.mule.api.NamedObject |
|---|
getName |
| Method Detail |
|---|
String authorize(Map<String,String> extraParameters,
String accessTokenUrl,
String redirectUri)
throws org.mule.common.security.oauth.exception.UnableToAcquireRequestTokenException
extraParameters - Extra query string parameters that should be added to
the authorization URL
org.mule.common.security.oauth.exception.UnableToAcquireRequestTokenException
void fetchAccessToken(String accessTokenUrl)
throws org.mule.common.security.oauth.exception.UnableToAcquireAccessTokenException
org.mule.common.security.oauth.exception.UnableToAcquireAccessTokenExceptionboolean hasTokenExpired()
void refreshAccessToken(String accessTokenId)
throws org.mule.common.security.oauth.exception.UnableToAcquireAccessTokenException
accessTokenId -
org.mule.common.security.oauth.exception.UnableToAcquireAccessTokenExceptionString getAccessToken()
getAccessToken in interface OAuth2ConnectorPattern getAccessCodePattern()
Pattern which can be used to
extract the access code from a String
String getRefreshToken()
void setRefreshToken(String refreshToken)
Pattern getRefreshTokenPattern()
Pattern which can be used to
extract the refresh token from a String
Pattern getExpirationTimePattern()
Pattern which can be used to
extract the expiration time from a String
void setExpiration(Date value)
void setConsumerKey(String consumerKey)
void setConsumerSecret(String consumerSecret)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||