Class OAuthClientConfig

java.lang.Object
org.apache.camel.spi.OAuthClientConfig

public class OAuthClientConfig extends Object
Configuration for OAuth 2.0 Client Credentials grant.

Used by OAuthClientAuthenticationFactory to create a Processor that acquires a bearer token and sets the Authorization: Bearer <token> header on the Exchange message.

  • Constructor Details

    • OAuthClientConfig

      public OAuthClientConfig()
  • Method Details

    • getClientId

      public String getClientId()
    • setClientId

      public OAuthClientConfig setClientId(String clientId)
    • getClientSecret

      public String getClientSecret()
    • setClientSecret

      public OAuthClientConfig setClientSecret(String clientSecret)
    • getTokenEndpoint

      public String getTokenEndpoint()
    • setTokenEndpoint

      public OAuthClientConfig setTokenEndpoint(String tokenEndpoint)
    • getScope

      public String getScope()
    • setScope

      public OAuthClientConfig setScope(String scope)
    • isCacheTokens

      public boolean isCacheTokens()
    • setCacheTokens

      public OAuthClientConfig setCacheTokens(boolean cacheTokens)
    • getCachedTokensDefaultExpirySeconds

      public long getCachedTokensDefaultExpirySeconds()
    • setCachedTokensDefaultExpirySeconds

      public OAuthClientConfig setCachedTokensDefaultExpirySeconds(long cachedTokensDefaultExpirySeconds)
    • getCachedTokensExpirationMarginSeconds

      public long getCachedTokensExpirationMarginSeconds()
    • setCachedTokensExpirationMarginSeconds

      public OAuthClientConfig setCachedTokensExpirationMarginSeconds(long cachedTokensExpirationMarginSeconds)