@ConnectionManagement(configElementName="config-oauth-dev-token", friendlyName="OAuth 2.0 Developer Token") public class OAuth2DevTokenConfig extends AbstractConfig
Constructor and Description |
---|
OAuth2DevTokenConfig() |
Modifier and Type | Method and Description |
---|---|
void |
connect(String developerToken)
Establishes a connection with the Box API.
|
String |
connectionId()
Returns the connection ID
|
void |
disconnect()
Disconnect the current connection
|
boolean |
isConnected()
Are we connected?
|
void |
testConnect(String developerToken) |
getAssignmentclient, getBoxAPIConnection, getCollaborationClient, getCommentClient, getFileClient, getFolderClient, getGroupClient, getMembershipClient, getTaskClient, getTrashClient, getUserClient, getVersionClient, setBoxAPIConnection
@Connect(strategy=SINGLE_INSTANCE) public void connect(@ConnectionKey@FriendlyName(value="Developer Token") String developerToken) throws org.mule.api.ConnectionException
developerToken
- A token that behaves just like a full OAuth2 bearer token. It gives you access to your account on a temporary basis. Limitations:
org.mule.api.ConnectionException
@TestConnectivity public void testConnect(@ConnectionKey@FriendlyName(value="Developer Token") String developerToken) throws org.mule.api.ConnectionException
org.mule.api.ConnectionException
@ConnectionIdentifier public String connectionId()
@Disconnect public void disconnect()
@ValidateConnection public boolean isConnected()
Copyright © 2010–2016. All rights reserved.