Uses of Class
com.kingsrook.qqq.backend.core.utils.webhooks.WebhookSecret
Packages that use WebhookSecret
-
Uses of WebhookSecret in com.kingsrook.qqq.backend.core.utils.webhooks
Methods in com.kingsrook.qqq.backend.core.utils.webhooks that return WebhookSecretModifier and TypeMethodDescriptionstatic WebhookSecretWebhookSecret.generate()A new random secret.static WebhookSecretParse the text form (whsec_<base64>, or raw text).Methods in com.kingsrook.qqq.backend.core.utils.webhooks with parameters of type WebhookSecretModifier and TypeMethodDescriptionstatic StringWebhookSigner.sign(String messageId, long timestampSeconds, byte[] body, WebhookSecret secret) One base64 HMAC-SHA256 signature over<id>.<timestamp>.<body>.Method parameters in com.kingsrook.qqq.backend.core.utils.webhooks with type arguments of type WebhookSecretModifier and TypeMethodDescriptionWebhookSigner.headers(String messageId, Instant timestamp, byte[] body, List<WebhookSecret> secrets) The three signature headers for one request.static StringWebhookSigner.signatureHeader(String messageId, long timestampSeconds, byte[] body, List<WebhookSecret> secrets) Thewebhook-signaturevalue:v1,<sig>per secret, space separated.Constructor parameters in com.kingsrook.qqq.backend.core.utils.webhooks with type arguments of type WebhookSecretModifierConstructorDescriptionWebhookVerifier(List<WebhookSecret> secrets) Verifier with the default tolerance and the system clock.WebhookVerifier(List<WebhookSecret> secrets, Duration tolerance, Clock clock) Verifier.