Package com.slack.api.bolt
Class AppConfig.AppConfigBuilder
java.lang.Object
com.slack.api.bolt.AppConfig.AppConfigBuilder
- Enclosing class:
- AppConfig
-
Method Summary
Modifier and TypeMethodDescriptionallEventsApiAutoAckEnabled
(boolean allEventsApiAutoAckEnabled) Automatically acknowledge all Event API events if true.alwaysRequestUserTokenNeeded
(boolean alwaysRequestUserTokenNeeded) appInitializersEnabled
(boolean appInitializersEnabled) authTestCacheEnabled
(boolean authTestCacheEnabled) Returns true if auth.test call result cache in MultiTeamsAuthorization middleware is enabled.authTestCacheExpirationMillis
(long authTestCacheExpirationMillis) Returns the millisecond value to keep cached auth.test response in cache.build()
classicAppPermissionsEnabled
(boolean classicAppPermissionsEnabled) clientSecret
(String clientSecret) executorServiceProvider
(ExecutorServiceProvider executorServiceProvider) ignoringSelfEventsEnabled
(boolean ignoringSelfEventsEnabled) oAuthCallbackEnabled
(boolean oAuthCallbackEnabled) Deprecated.oauthCallbackPath
(String oauthCallbackPath) Deprecated.oauthCancellationUrl
(String oauthCancellationUrl) oauthCompletionUrl
(String oauthCompletionUrl) oAuthInstallPageRenderer
(OAuthInstallPageRenderer oAuthInstallPageRenderer) Renders the web page content to display to installers.oAuthInstallPageRenderingEnabled
(boolean oAuthInstallPageRenderingEnabled) If you prefer the behavior in v1.0 - 1.3, set this flag as falseoauthInstallPath
(String oauthInstallPath) oAuthInstallPathEnabled
(boolean oAuthInstallPathEnabled) oAuthRedirectUriPageRenderer
(OAuthRedirectUriPageRenderer oAuthRedirectUriPageRenderer) Renders the web page content to display to installers.oauthRedirectUriPath
(String oauthRedirectUriPath) oAuthRedirectUriPathEnabled
(boolean oAuthRedirectUriPathEnabled) oAuthStartEnabled
(boolean oAuthStartEnabled) Deprecated.oauthStartPath
(String oauthStartPath) Deprecated.openIDConnectEnabled
(boolean openIDConnectEnabled) redirectUri
(String redirectUri) requestVerificationEnabled
(boolean requestVerificationEnabled) signingSecret
(String signingSecret) singleTeamBotToken
(String singleTeamBotToken) sslCheckEnabled
(boolean sslCheckEnabled) stateValidationEnabled
(boolean stateValidationEnabled) Enables validation of the state parameter in the OAuth flow.subtypedMessageEventsAutoAckEnabled
(boolean subtypedMessageEventsAutoAckEnabled) Automatically acknowledge message events that have subtype if true.threadPoolSize
(int threadPoolSize) The thread pool size for the built-in handy executor service.tokenRotationExpirationMillis
(long tokenRotationExpirationMillis) toString()
unmatchedRequestHandler
(UnmatchedRequestHandler unmatchedRequestHandler) Handles unmatched requests (default behavior is simply returning 404 Not Found).verificationToken
(String verificationToken) Deprecated.
-
Method Details
-
slack
- Returns:
this
.
-
executorServiceProvider
public AppConfig.AppConfigBuilder executorServiceProvider(ExecutorServiceProvider executorServiceProvider) - Returns:
this
.
-
singleTeamBotToken
- Returns:
this
.
-
signingSecret
- Returns:
this
.
-
verificationToken
Deprecated.- Returns:
this
.
-
oAuthInstallPathEnabled
- Returns:
this
.
-
oAuthStartEnabled
Deprecated.- Returns:
this
.
-
openIDConnectEnabled
- Returns:
this
.
-
oAuthRedirectUriPathEnabled
- Returns:
this
.
-
oAuthCallbackEnabled
Deprecated.- Returns:
this
.
-
oAuthInstallPageRenderingEnabled
public AppConfig.AppConfigBuilder oAuthInstallPageRenderingEnabled(boolean oAuthInstallPageRenderingEnabled) If you prefer the behavior in v1.0 - 1.3, set this flag as false- Returns:
this
.
-
oAuthInstallPageRenderer
public AppConfig.AppConfigBuilder oAuthInstallPageRenderer(OAuthInstallPageRenderer oAuthInstallPageRenderer) Renders the web page content to display to installers.- Returns:
this
.
-
oAuthRedirectUriPageRenderer
public AppConfig.AppConfigBuilder oAuthRedirectUriPageRenderer(OAuthRedirectUriPageRenderer oAuthRedirectUriPageRenderer) Renders the web page content to display to installers.- Returns:
this
.
-
unmatchedRequestHandler
public AppConfig.AppConfigBuilder unmatchedRequestHandler(UnmatchedRequestHandler unmatchedRequestHandler) Handles unmatched requests (default behavior is simply returning 404 Not Found).- Returns:
this
.
-
authTestCacheEnabled
Returns true if auth.test call result cache in MultiTeamsAuthorization middleware is enabled. The default is false.- Returns:
this
.
-
authTestCacheExpirationMillis
Returns the millisecond value to keep cached auth.test response in cache. Negative value indicates the cache is permanent. The default is 10 minutes.- Returns:
this
.
-
classicAppPermissionsEnabled
public AppConfig.AppConfigBuilder classicAppPermissionsEnabled(boolean classicAppPermissionsEnabled) - Returns:
this
.
-
threadPoolSize
The thread pool size for the built-in handy executor service.- Returns:
this
.
-
clientId
- Returns:
this
.
-
clientSecret
- Returns:
this
.
-
redirectUri
- Returns:
this
.
-
scope
- Returns:
this
.
-
userScope
- Returns:
this
.
-
tokenRotationExpirationMillis
- Returns:
this
.
-
appPath
- Returns:
this
.
-
oauthStartPath
Deprecated.- Returns:
this
.
-
oauthInstallPath
- Returns:
this
.
-
oauthCallbackPath
Deprecated.- Returns:
this
.
-
oauthRedirectUriPath
- Returns:
this
.
-
stateValidationEnabled
Enables validation of the state parameter in the OAuth flow. It is highly recommended to enable this validation for better security. A valid exception is when Enterprise Grid Org admins install apps from the app management page.- Returns:
this
.
-
oauthCancellationUrl
- Returns:
this
.
-
oauthCompletionUrl
- Returns:
this
.
-
alwaysRequestUserTokenNeeded
public AppConfig.AppConfigBuilder alwaysRequestUserTokenNeeded(boolean alwaysRequestUserTokenNeeded) - Returns:
this
.
-
appInitializersEnabled
- Returns:
this
.
-
subtypedMessageEventsAutoAckEnabled
public AppConfig.AppConfigBuilder subtypedMessageEventsAutoAckEnabled(boolean subtypedMessageEventsAutoAckEnabled) Automatically acknowledge message events that have subtype if true. Find the list of available subtypes at https://api.slack.com/events/message#subtypes- Returns:
this
.
-
allEventsApiAutoAckEnabled
Automatically acknowledge all Event API events if true. This behavior is compatible with bolt-js.- Returns:
this
.
-
sslCheckEnabled
- Returns:
this
.
-
requestVerificationEnabled
- Returns:
this
.
-
ignoringSelfEventsEnabled
- Returns:
this
.
-
build
-
toString
-