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 Details

  • Constructor Details

    • BoxConfiguration

      public BoxConfiguration()
  • Method Details

    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object