Class FileOAuthStateService
java.lang.Object
com.slack.api.bolt.service.builtin.FileOAuthStateService
- All Implemented Interfaces:
OAuthStateService,Service
OAuthStateService implementation using local file system.
-
Field Summary
FieldsFields inherited from interface com.slack.api.bolt.service.OAuthStateService
DEFAULT_EXPIRATION_IN_SECONDS -
Constructor Summary
ConstructorsConstructorDescriptionFileOAuthStateService(AppConfig config) FileOAuthStateService(AppConfig config, String rootDir) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNewStateToDatastore(String state) Adds a newly generated state value to the server-side datastore.voiddeleteStateFromDatastore(String state) Deletes a given state value from the server-side datastore.booleanisAvailableInDatabase(String state) Verifies the state value is available in the datastore and returns true if it's valid.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.slack.api.bolt.service.OAuthStateService
consume, extractStateFromQueryString, extractStateFromSession, generateNewStateValue, generateSessionCookieValue, getExpirationInSeconds, getSessionCookieName, issueNewState, isValidMethods inherited from interface com.slack.api.bolt.service.Service
initializer
-
Field Details
-
DEFAULT_ROOT_DIR
-
-
Constructor Details
-
FileOAuthStateService
- Throws:
RuntimeException
-
FileOAuthStateService
- Throws:
RuntimeException
-
-
Method Details
-
addNewStateToDatastore
Description copied from interface:OAuthStateServiceAdds a newly generated state value to the server-side datastore.- Specified by:
addNewStateToDatastorein interfaceOAuthStateService- Throws:
Exception
-
isAvailableInDatabase
Description copied from interface:OAuthStateServiceVerifies the state value is available in the datastore and returns true if it's valid.- Specified by:
isAvailableInDatabasein interfaceOAuthStateService
-
deleteStateFromDatastore
Description copied from interface:OAuthStateServiceDeletes a given state value from the server-side datastore.- Specified by:
deleteStateFromDatastorein interfaceOAuthStateService- Throws:
Exception
-