Uses of Record Class
com.fortemate.dicechess.runtime.WebhookKeys
-
Uses of WebhookKeys in com.fortemate.dicechess.runtime
Methods in com.fortemate.dicechess.runtime that return WebhookKeysModifier and TypeMethodDescriptionstatic WebhookKeysWebhookKeys.activeAndPending(String active, String pending) Creates a configuration containing both an active and a pending key.static WebhookKeysWebhookKeys.activeOnly(String active) Creates a configuration containing only an active key.static WebhookKeysWebhookKeys.fromEnvironment()Creates a key configuration from the default system environment variables ("DICECHESS_WEBHOOK_SECRET" and "DICECHESS_WEBHOOK_NEXT_SECRET").static WebhookKeysWebhookKeys.fromEnvironment(Map<String, String> env) Creates a key configuration from a specified environment map.WebhookHandler.keys()Returns the immutable key configuration used by this handler.static WebhookKeysConvenience factory for creating a configuration with optional active and pending keys.static WebhookKeysWebhookKeys.pendingOnly(String pending) Creates a configuration containing only a pending key.Methods in com.fortemate.dicechess.runtime with parameters of type WebhookKeysModifier and TypeMethodDescriptionstatic booleanSignatures.verify(WebhookKeys keys, long timestampEpochSeconds, String body, String signature, long nowEpochSeconds) Verifies a delivery's signature and freshness against configured active and/or pending keys.Constructors in com.fortemate.dicechess.runtime with parameters of type WebhookKeysModifierConstructorDescriptionWebhookHandler(WebhookKeys keys, BotStrategy strategy) Creates a handler with an immutable key configuration and without theGET /games/{id}/movesfallback.WebhookHandler(WebhookKeys keys, String playApiBaseUrl, BotStrategy strategy) Creates a handler with an immutable key configuration that fetchesGET /games/{id}/moveswhen a turn's inline move tree is capped.WebhookHandler(WebhookKeys keys, String playApiBaseUrl, BotStrategy strategy, ResignPolicy resignPolicy) Creates a handler with an immutable key configuration and custom resign policy.