@ConnectionManagement(configElementName="config-oauth-server-to-server", friendlyName="OAuth 2.0 Server to Server") public class OAuth2ServerToServerConfig extends AbstractConfig
Constructor and Description |
---|
OAuth2ServerToServerConfig() |
Modifier and Type | Method and Description |
---|---|
void |
connect(String clientId,
String clientSecret)
Establishes a connection with the Box API.
|
String |
connectionId()
Returns the connection ID
|
void |
disconnect()
Disconnect the current connection
|
ConnectionType |
getConnectionType() |
com.box.sdk.EncryptionAlgorithm |
getEncryptionAlgorithm() |
String |
getEntityId() |
org.mule.api.MuleContext |
getMuleContext() |
String |
getPrivateKeyPassword() |
String |
getPrivateKeyPath() |
String |
getPublicKeyId() |
boolean |
isConnected()
Are we connected?
|
void |
setConnectionType(ConnectionType connectionType) |
void |
setEncryptionAlgorithm(com.box.sdk.EncryptionAlgorithm encryptionAlgorithm) |
void |
setEntityId(String entityId) |
void |
setMuleContext(org.mule.api.MuleContext muleContext) |
void |
setPrivateKeyPassword(String privateKeyPassword) |
void |
setPrivateKeyPath(String privateKeyPath) |
void |
setPublicKeyId(String publicKeyId) |
getAssignmentclient, getBoxAPIConnection, getCollaborationClient, getCommentClient, getFileClient, getFolderClient, getGroupClient, getMembershipClient, getTaskClient, getTrashClient, getUserClient, getVersionClient, setBoxAPIConnection
@Connect(strategy=SINGLE_INSTANCE) @TestConnectivity public void connect(@ConnectionKey String clientId, String clientSecret) throws org.mule.api.ConnectionException
clientId
- The client ID of your application.clientSecret
- The client password of your application.org.mule.api.ConnectionException
@ConnectionIdentifier public String connectionId()
@Disconnect public void disconnect()
@ValidateConnection public boolean isConnected()
public void setMuleContext(org.mule.api.MuleContext muleContext)
public org.mule.api.MuleContext getMuleContext()
public String getPrivateKeyPath()
public void setPrivateKeyPath(String privateKeyPath)
public String getPublicKeyId()
public void setPublicKeyId(String publicKeyId)
public ConnectionType getConnectionType()
public void setConnectionType(ConnectionType connectionType)
public com.box.sdk.EncryptionAlgorithm getEncryptionAlgorithm()
public void setEncryptionAlgorithm(com.box.sdk.EncryptionAlgorithm encryptionAlgorithm)
public String getEntityId()
public void setEntityId(String entityId)
public String getPrivateKeyPassword()
public void setPrivateKeyPassword(String privateKeyPassword)
Copyright © 2010–2017. All rights reserved.