@Generated(value="Mule DevKit Version 3.9.7", date="2020-08-05T11:25:46+03:00", comments="Build mule-devkit-3.9.7.2818.62a60e1") public class Dynamics365ConnectorOAuth2Adapter extends org.mule.modules.microsoftdynamics365.generated.adapters.Dynamics365ConnectorProcessAdapter implements org.mule.security.oauth.OAuth2Adapter
Dynamics365ConnectorOAuth2Adapter
is a wrapper around Dynamics365Connector
that adds OAuth capabilites to the pojo.Modifier and Type | Field and Description |
---|---|
String |
redirectUri |
Constructor and Description |
---|
Dynamics365ConnectorOAuth2Adapter(org.mule.security.oauth.OAuth2Manager<org.mule.security.oauth.OAuth2Adapter> oauthManager) |
Modifier and Type | Method and Description |
---|---|
String |
authorize(Map<String,String> extraParameters,
String authorizationUrl,
String redirectUri) |
void |
fetchAccessToken(String redirectUri) |
Pattern |
getAccessCodePattern()
Retrieves ACCESS_CODE_PATTERN
|
String |
getAccessToken() |
String |
getAccessTokenRegex() |
String |
getAccessTokenUrl()
Retrieves accessTokenUrl
|
Set<org.mule.common.security.oauth.AuthorizationParameter<?>> |
getAuthorizationParameters() |
String |
getAuthorizationUrl()
Retrieves authorizationUrl
|
String |
getConsumerKey() |
String |
getConsumerSecret() |
String |
getExpirationRegex() |
Pattern |
getExpirationTimePattern()
Retrieves EXPIRATION_TIME_PATTERN
|
String |
getName()
Retrieves name
|
String |
getOauthVerifier()
Retrieves oauthVerifier
|
org.mule.security.oauth.OnNoTokenPolicy |
getOnNoTokenPolicy()
Retrieves onNoTokenPolicy
|
<P> org.mule.api.devkit.ProcessTemplate<P,org.mule.modules.microsoftdynamics365.generated.adapters.Dynamics365ConnectorCapabilitiesAdapter> |
getProcessTemplate() |
String |
getRefreshToken()
Retrieves refreshToken
|
Pattern |
getRefreshTokenPattern()
Retrieves REFRESH_TOKEN_PATTERN
|
String |
getRefreshTokenRegex() |
String |
getScope() |
String |
getVerifierRegex() |
void |
hasBeenAuthorized() |
boolean |
hasTokenExpired() |
void |
initialise() |
void |
postAuth() |
void |
refreshAccessToken(String accessTokenId) |
void |
reset() |
void |
setAccessToken(String value) |
void |
setAccessTokenUrl(String value)
Sets accessTokenUrl
|
void |
setAuthorizationUrl(String value)
Sets authorizationUrl
|
void |
setConsumerKey(String value) |
void |
setConsumerSecret(String value) |
void |
setExpiration(Date value)
Sets expiration
|
void |
setName(String value)
Sets name
|
void |
setOauthVerifier(String value)
Sets oauthVerifier
|
void |
setOnNoTokenPolicy(org.mule.security.oauth.OnNoTokenPolicy value)
Sets onNoTokenPolicy
|
void |
setRefreshToken(String value)
Sets refreshToken
|
dispose, setMuleContext, start, stop
getDevkitBuild, getDevkitVersion, getMinMuleVersion, getModuleName, getModuleVersion
isCapableOf
create, createMultiple, delete, deleteMultiple, disassociate, doAction, getConfig, invoke, retrieve, retrieveMultiple, retrieveMultipleByQuery, setConfig, update, updateMultiple
public String redirectUri
public Dynamics365ConnectorOAuth2Adapter(org.mule.security.oauth.OAuth2Manager<org.mule.security.oauth.OAuth2Adapter> oauthManager)
public Pattern getAccessCodePattern()
getAccessCodePattern
in interface org.mule.security.oauth.OAuth2Adapter
public Pattern getRefreshTokenPattern()
getRefreshTokenPattern
in interface org.mule.security.oauth.OAuth2Adapter
public Pattern getExpirationTimePattern()
getExpirationTimePattern
in interface org.mule.security.oauth.OAuth2Adapter
public String getName()
getName
in interface org.mule.api.NamedObject
public void setName(String value)
setName
in interface org.mule.api.NameableObject
value
- Value to setpublic org.mule.security.oauth.OnNoTokenPolicy getOnNoTokenPolicy()
getOnNoTokenPolicy
in interface org.mule.security.oauth.OnNoTokenPolicyAware
public void setOnNoTokenPolicy(org.mule.security.oauth.OnNoTokenPolicy value)
setOnNoTokenPolicy
in interface org.mule.security.oauth.OnNoTokenPolicyAware
value
- Value to setpublic String getOauthVerifier()
getOauthVerifier
in interface org.mule.security.oauth.OAuthAdapter
public void setOauthVerifier(String value)
setOauthVerifier
in interface org.mule.security.oauth.OAuthAdapter
value
- Value to setpublic String getRefreshToken()
getRefreshToken
in interface org.mule.security.oauth.OAuth2Adapter
public void setRefreshToken(String value)
setRefreshToken
in interface org.mule.security.oauth.OAuth2Adapter
value
- Value to setpublic void setAuthorizationUrl(String value)
setAuthorizationUrl
in interface org.mule.security.oauth.OAuthAdapter
value
- Value to setpublic String getAuthorizationUrl()
getAuthorizationUrl
in interface org.mule.security.oauth.OAuth2Connector
public void setAccessTokenUrl(String value)
setAccessTokenUrl
in interface org.mule.security.oauth.OAuthAdapter
value
- Value to setpublic String getAccessTokenUrl()
getAccessTokenUrl
in interface org.mule.security.oauth.OAuth2Connector
public void setExpiration(Date value)
setExpiration
in interface org.mule.security.oauth.OAuth2Adapter
value
- Value to setpublic void initialise() throws org.mule.api.lifecycle.InitialisationException
initialise
in interface org.mule.api.lifecycle.Initialisable
initialise
in class org.mule.modules.microsoftdynamics365.generated.adapters.Dynamics365ConnectorProcessAdapter
org.mule.api.lifecycle.InitialisationException
public String authorize(Map<String,String> extraParameters, String authorizationUrl, String redirectUri)
authorize
in interface org.mule.security.oauth.OAuth2Adapter
public void fetchAccessToken(String redirectUri) throws org.mule.common.security.oauth.exception.UnableToAcquireAccessTokenException
fetchAccessToken
in interface org.mule.security.oauth.OAuth2Adapter
org.mule.common.security.oauth.exception.UnableToAcquireAccessTokenException
public void refreshAccessToken(String accessTokenId) throws org.mule.common.security.oauth.exception.UnableToAcquireAccessTokenException
refreshAccessToken
in interface org.mule.security.oauth.OAuth2Adapter
org.mule.common.security.oauth.exception.UnableToAcquireAccessTokenException
public boolean hasTokenExpired()
hasTokenExpired
in interface org.mule.security.oauth.OAuth2Adapter
public void reset()
public void hasBeenAuthorized() throws org.mule.common.security.oauth.exception.NotAuthorizedException
hasBeenAuthorized
in interface org.mule.security.oauth.OAuthAdapter
org.mule.common.security.oauth.exception.NotAuthorizedException
public Set<org.mule.common.security.oauth.AuthorizationParameter<?>> getAuthorizationParameters()
getAuthorizationParameters
in interface org.mule.security.oauth.OAuth2Connector
public String getConsumerKey()
getConsumerKey
in interface org.mule.security.oauth.OAuth2Connector
public void setConsumerKey(String value)
setConsumerKey
in interface org.mule.security.oauth.OAuth2Adapter
public String getConsumerSecret()
getConsumerSecret
in interface org.mule.security.oauth.OAuth2Connector
public void setConsumerSecret(String value)
setConsumerSecret
in interface org.mule.security.oauth.OAuth2Adapter
public String getAccessToken()
getAccessToken
in interface org.mule.security.oauth.OAuth2Adapter
getAccessToken
in interface org.mule.security.oauth.OAuth2Connector
public void setAccessToken(String value)
setAccessToken
in interface org.mule.security.oauth.OAuthAdapter
public String getScope()
getScope
in interface org.mule.security.oauth.OAuth2Connector
public void postAuth() throws Exception
postAuth
in interface org.mule.security.oauth.OAuth2Connector
Exception
public <P> org.mule.api.devkit.ProcessTemplate<P,org.mule.modules.microsoftdynamics365.generated.adapters.Dynamics365ConnectorCapabilitiesAdapter> getProcessTemplate()
getProcessTemplate
in interface org.mule.api.devkit.ProcessAdapter<org.mule.modules.microsoftdynamics365.generated.adapters.Dynamics365ConnectorCapabilitiesAdapter>
getProcessTemplate
in class org.mule.modules.microsoftdynamics365.generated.adapters.Dynamics365ConnectorProcessAdapter
public String getAccessTokenRegex()
getAccessTokenRegex
in interface org.mule.security.oauth.OAuth2Connector
public String getExpirationRegex()
getExpirationRegex
in interface org.mule.security.oauth.OAuth2Connector
public String getRefreshTokenRegex()
getRefreshTokenRegex
in interface org.mule.security.oauth.OAuth2Connector
public String getVerifierRegex()
getVerifierRegex
in interface org.mule.security.oauth.OAuth2Connector
Copyright © 2010–2020. All rights reserved.