@Generated(value="Mule DevKit Version 3.9.0", date="2017-08-04T05:03:02-03:00", comments="Build UNNAMED.2793.f49b6c7") public class BoxConnectorOAuth2Adapter extends org.mule.modules.box.generated.adapters.BoxConnectorProcessAdapter implements org.mule.security.oauth.OAuth2Adapter
BoxConnectorOAuth2Adapter
is a wrapper around BoxConnector
that adds OAuth capabilites to the pojo.Modifier and Type | Field and Description |
---|---|
String |
redirectUri |
Constructor and Description |
---|
BoxConnectorOAuth2Adapter(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.box.generated.adapters.BoxConnectorCapabilitiesAdapter> |
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
addCommentToFile, addGroupMembership, addTaskAssignment, addTaskToFile, copyFile, copyFolder, createAppUser, createCollaboration, createFolder, createGroup, createSharedLinkFile, createSharedLinkFolder, deleteCollaboration, deleteComment, deleteFile, deleteFolder, deleteGroup, deleteGroupMembership, deleteOldFileVersion, deleteTask, deleteTaskAssignment, deleteUser, downloadFile, downloadFileVersion, fullSearch, getAllGroups, getAssignmentClient, getCollaborationInfo, getCommentInfo, getConfig, getCurrentUser, getDownloadURL, getEnterpriseUsers, getFileComments, getFileInfo, getFilePreviewLink, getFileTasks, getFileVersions, getFolderCollaborations, getFolderInfo, getFolderItems, getGroupClient, getGroupInfo, getGroupMembership, getGroupMemberships, getMembershipClient, getPendingCollaborations, getTaskAssignmentInfo, getTaskAssignments, getTaskClient, getTaskInfo, getThumbnail, getTrashedFile, getTrashedFolder, getTrashedItems, getUserClient, getUserGroupMemberships, getUserInfo, moveFolderToUser, permanentlyDeleteFile, permanentlyDeleteFolder, promoteFileVersion, replyToComment, restoreFile, restoreFolder, search, setConfig, updateCollaboration, updateComment, updateFileInfo, updateFolder, updateGroupMembership, updateTaskAssignmentInfo, updateTaskInfo, updateUserInfo, uploadFile, uploadNewVersion, validate, validateFields
public String redirectUri
public BoxConnectorOAuth2Adapter(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.box.generated.adapters.BoxConnectorProcessAdapter
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.box.generated.adapters.BoxConnectorCapabilitiesAdapter> getProcessTemplate()
getProcessTemplate
in interface org.mule.api.devkit.ProcessAdapter<org.mule.modules.box.generated.adapters.BoxConnectorCapabilitiesAdapter>
getProcessTemplate
in class org.mule.modules.box.generated.adapters.BoxConnectorProcessAdapter
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–2017. All rights reserved.