Package org.apache.camel.spi
Class OAuthClientConfig
java.lang.Object
org.apache.camel.spi.OAuthClientConfig
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglonggetScope()booleansetCachedTokensDefaultExpirySeconds(long cachedTokensDefaultExpirySeconds) setCachedTokensExpirationMarginSeconds(long cachedTokensExpirationMarginSeconds) setCacheTokens(boolean cacheTokens) setClientId(String clientId) setClientSecret(String clientSecret) setTokenEndpoint(String tokenEndpoint)
-
Constructor Details
-
OAuthClientConfig
public OAuthClientConfig()
-
-
Method Details
-
getClientId
-
setClientId
-
getClientSecret
-
setClientSecret
-
getTokenEndpoint
-
setTokenEndpoint
-
getScope
-
setScope
-
isCacheTokens
public boolean isCacheTokens() -
setCacheTokens
-
getCachedTokensDefaultExpirySeconds
public long getCachedTokensDefaultExpirySeconds() -
setCachedTokensDefaultExpirySeconds
-
getCachedTokensExpirationMarginSeconds
public long getCachedTokensExpirationMarginSeconds() -
setCachedTokensExpirationMarginSeconds
public OAuthClientConfig setCachedTokensExpirationMarginSeconds(long cachedTokensExpirationMarginSeconds)
-