Class ClientOnlyOAuthStateService
java.lang.Object
com.slack.api.bolt.service.builtin.ClientOnlyOAuthStateService
- All Implemented Interfaces:
OAuthStateService,Service
A fairly simple OAuthStateService implementation. This one doesn't offer server-side datastore.
-
Field Summary
Fields inherited from interface com.slack.api.bolt.service.OAuthStateService
DEFAULT_EXPIRATION_IN_SECONDS -
Constructor Summary
Constructors -
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
-
Constructor Details
-
ClientOnlyOAuthStateService
public ClientOnlyOAuthStateService()
-
-
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
-