Package org.apache.camel.component.box
Class BoxConfiguration
- java.lang.Object
-
- org.apache.camel.component.box.BoxConfiguration
-
- Direct Known Subclasses:
BoxCollaborationsManagerEndpointConfiguration,BoxCommentsManagerEndpointConfiguration,BoxEventLogsManagerEndpointConfiguration,BoxEventsManagerEndpointConfiguration,BoxFilesManagerEndpointConfiguration,BoxFoldersManagerEndpointConfiguration,BoxGroupsManagerEndpointConfiguration,BoxSearchManagerEndpointConfiguration,BoxTasksManagerEndpointConfiguration,BoxUsersManagerEndpointConfiguration
@UriParams @Configurer(extended=true) public class BoxConfiguration extends Object
Component configuration for Box component.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPP_ENTERPRISE_AUTHENTICATIONAuthentication Types for Connectionstatic StringAPP_USER_AUTHENTICATIONstatic StringRSA_SHA_256static StringRSA_SHA_384static StringRSA_SHA_512Encryption Algorithm Types for Server Authentication.static StringSTANDARD_AUTHENTICATION
-
Constructor Summary
Constructors Constructor Description BoxConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)com.box.sdk.IAccessTokenCachegetAccessTokenCache()Custom Access Token Cache for storing and retrieving access tokens.BoxApiNamegetApiName()What kind of operation to performStringgetAuthenticationType()The type of authentication for connection.StringgetClientId()Box application client IDStringgetClientSecret()Box application client secretcom.box.sdk.EncryptionAlgorithmgetEncryptionAlgorithm()The type of encryption algorithm for JWT.StringgetEnterpriseId()The enterprise ID to use for an App Enterprise.Map<String,Object>getHttpParams()Custom HTTP params for settings like proxy hostintgetMaxCacheEntries()The maximum number of access tokens in cache.StringgetMethodName()What sub operation to use for the selected operationStringgetPrivateKeyFile()The private key for generating the JWT signature.StringgetPrivateKeyPassword()The password for the private key.StringgetPublicKeyId()The ID for public key for validating the JWT signature.org.apache.camel.support.jsse.SSLContextParametersgetSslContextParameters()To configure security using SSLContextParameters.StringgetUserId()The user ID to use for an App User.StringgetUserName()Box user name, MUST be providedStringgetUserPassword()Box user password, MUST be provided if authSecureStorage is not set, or returns null on first callinthashCode()voidsetAccessTokenCache(com.box.sdk.IAccessTokenCache accessTokenCache)Custom Access Token Cache for storing and retrieving access tokens.voidsetApiName(BoxApiName apiName)What kind of operation to performvoidsetAuthenticationType(String authenticationType)The type of authentication for connection.voidsetClientId(String clientId)Box application client IDvoidsetClientSecret(String clientSecret)Box application client secretvoidsetEncryptionAlgorithm(com.box.sdk.EncryptionAlgorithm encryptionAlgorithm)The type of encryption algorithm for JWT.voidsetEncryptionAlgorithm(String encryptionAlgorithm)voidsetEnterpriseId(String enterpriseId)The enterprise ID to use for an App Enterprise.voidsetHttpParams(Map<String,Object> httpParams)Custom HTTP params for settings like proxy hostvoidsetMaxCacheEntries(int maxCacheEntries)The maximum number of access tokens in cache.voidsetMaxCacheEntries(String maxCacheEntries)voidsetMethodName(String methodName)What sub operation to use for the selected operationvoidsetPrivateKeyFile(String privateKey)The private key for generating the JWT signature.voidsetPrivateKeyPassword(String privateKeyPassword)The password for the private key.voidsetPublicKeyId(String publicKeyId)The ID for public key for validating the JWT signature.voidsetSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)To configure security using SSLContextParameters.voidsetUserId(String userId)The user ID to use for an App User.voidsetUserName(String userName)Box user name, MUST be providedvoidsetUserPassword(String userPassword)Box user password, MUST be provided if authSecureStorage is not set, or returns null on first call
-
-
-
Field Detail
-
APP_ENTERPRISE_AUTHENTICATION
public static final String APP_ENTERPRISE_AUTHENTICATION
Authentication Types for Connection- See Also:
- Constant Field Values
-
APP_USER_AUTHENTICATION
public static final String APP_USER_AUTHENTICATION
- See Also:
- Constant Field Values
-
STANDARD_AUTHENTICATION
public static final String STANDARD_AUTHENTICATION
- See Also:
- Constant Field Values
-
RSA_SHA_512
public static final String RSA_SHA_512
Encryption Algorithm Types for Server Authentication.- See Also:
- Constant Field Values
-
RSA_SHA_384
public static final String RSA_SHA_384
- See Also:
- Constant Field Values
-
RSA_SHA_256
public static final String RSA_SHA_256
- See Also:
- Constant Field Values
-
-
Method Detail
-
getApiName
public BoxApiName getApiName()
What kind of operation to perform- Returns:
- the API Name
-
setApiName
public void setApiName(BoxApiName apiName)
What kind of operation to perform- Parameters:
apiName- the API Name to set
-
getMethodName
public String getMethodName()
What sub operation to use for the selected operation- Returns:
- the methodName
-
setMethodName
public void setMethodName(String methodName)
What sub operation to use for the selected operation- Parameters:
methodName- the methodName to set
-
getEnterpriseId
public String getEnterpriseId()
The enterprise ID to use for an App Enterprise.- Returns:
- the enterpriseId
-
setEnterpriseId
public void setEnterpriseId(String enterpriseId)
The enterprise ID to use for an App Enterprise.- Parameters:
enterpriseId- the enterpriseId to set
-
getUserId
public String getUserId()
The user ID to use for an App User.- Returns:
- the userId
-
setUserId
public void setUserId(String userId)
The user ID to use for an App User.- Parameters:
userId- the userId to set
-
getPublicKeyId
public String getPublicKeyId()
The ID for public key for validating the JWT signature.- Returns:
- the publicKeyId
-
setPublicKeyId
public void setPublicKeyId(String publicKeyId)
The ID for public key for validating the JWT signature.- Parameters:
publicKeyId- the publicKeyId to set
-
getPrivateKeyFile
public String getPrivateKeyFile()
The private key for generating the JWT signature.- Returns:
- the privateKey
-
setPrivateKeyFile
public void setPrivateKeyFile(String privateKey)
The private key for generating the JWT signature.- Parameters:
privateKey- the privateKey to set
-
getPrivateKeyPassword
public String getPrivateKeyPassword()
The password for the private key.- Returns:
- the privateKeyPassword
-
setPrivateKeyPassword
public void setPrivateKeyPassword(String privateKeyPassword)
The password for the private key.- Parameters:
privateKeyPassword- the privateKeyPassword to set
-
getMaxCacheEntries
public int getMaxCacheEntries()
The maximum number of access tokens in cache.- Returns:
- the maxCacheEntries
-
setMaxCacheEntries
public void setMaxCacheEntries(int maxCacheEntries)
The maximum number of access tokens in cache.- Parameters:
maxCacheEntries- the maxCacheEntries to set
-
setMaxCacheEntries
public void setMaxCacheEntries(String maxCacheEntries)
-
getEncryptionAlgorithm
public com.box.sdk.EncryptionAlgorithm getEncryptionAlgorithm()
The type of encryption algorithm for JWT.- Returns:
- the encryptionAlgorithm
-
setEncryptionAlgorithm
public void setEncryptionAlgorithm(com.box.sdk.EncryptionAlgorithm encryptionAlgorithm)
The type of encryption algorithm for JWT.Supported Algorithms:
- RSA_SHA_256
- RSA_SHA_384
- RSA_SHA_512
- Parameters:
encryptionAlgorithm- the encryptionAlgorithm to set
-
setEncryptionAlgorithm
public void setEncryptionAlgorithm(String encryptionAlgorithm)
-
getAuthenticationType
public String getAuthenticationType()
The type of authentication for connection.Types of Authentication:
- STANDARD_AUTHENTICATION - OAuth 2.0 (3-legged)
- SERVER_AUTHENTICATION - OAuth 2.0 with JSON Web Tokens
- Returns:
- the authenticationType
-
setAuthenticationType
public void setAuthenticationType(String authenticationType)
The type of authentication for connection.Types of Authentication:
- STANDARD_AUTHENTICATION - OAuth 2.0 (3-legged)
- SERVER_AUTHENTICATION - OAuth 2.0 with JSON Web Tokens
- Parameters:
authenticationType- the authenticationType to set
-
getClientId
public String getClientId()
Box application client ID- Returns:
- the clientId
-
setClientId
public void setClientId(String clientId)
Box application client ID- Parameters:
clientId- the clientId to set
-
getClientSecret
public String getClientSecret()
Box application client secret- Returns:
- the clientSecret
-
setClientSecret
public void setClientSecret(String clientSecret)
Box application client secret- Parameters:
clientSecret- the clientSecret to set
-
getUserName
public String getUserName()
Box user name, MUST be provided- Returns:
- the userName
-
setUserName
public void setUserName(String userName)
Box user name, MUST be provided- Parameters:
userName- the userName to set
-
getUserPassword
public String getUserPassword()
Box user password, MUST be provided if authSecureStorage is not set, or returns null on first call- Returns:
- the userPassword
-
setUserPassword
public void setUserPassword(String userPassword)
Box user password, MUST be provided if authSecureStorage is not set, or returns null on first call- Parameters:
userPassword- the userPassword to set
-
getHttpParams
public Map<String,Object> getHttpParams()
Custom HTTP params for settings like proxy host- Returns:
- the httpParams
-
setHttpParams
public void setHttpParams(Map<String,Object> httpParams)
Custom HTTP params for settings like proxy host- Parameters:
httpParams- the httpParams to set
-
getSslContextParameters
public org.apache.camel.support.jsse.SSLContextParameters getSslContextParameters()
To configure security using SSLContextParameters.- Returns:
- the sslContextParameters
-
setSslContextParameters
public void setSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
To configure security using SSLContextParameters.- Parameters:
sslContextParameters- the sslContextParameters to set
-
getAccessTokenCache
public com.box.sdk.IAccessTokenCache getAccessTokenCache()
Custom Access Token Cache for storing and retrieving access tokens.- Returns:
- Custom Access Token Cache
-
setAccessTokenCache
public void setAccessTokenCache(com.box.sdk.IAccessTokenCache accessTokenCache)
Custom Access Token Cache for storing and retrieving access tokens.- Parameters:
accessTokenCache- - the Custom Access Token Cache
-
-