Package am.ik.webhook.spring
Class WebhookVerifierRequestBodyAdvice
java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdviceAdapter
am.ik.webhook.spring.WebhookVerifierRequestBodyAdvice
- All Implemented Interfaces:
org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
@ControllerAdvice
public class WebhookVerifierRequestBodyAdvice
extends org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdviceAdapter
-
Constructor Summary
ConstructorsConstructorDescriptionWebhookVerifierRequestBodyAdvice(Function<String, WebhookVerifier> webhookVerifierFactory, String secret, String signatureHeaderName) -
Method Summary
Modifier and TypeMethodDescriptionafterBodyRead(Object body, org.springframework.http.HttpInputMessage inputMessage, org.springframework.core.MethodParameter parameter, Type targetType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) githubSha1(String secret) githubSha256(String secret) booleansupports(org.springframework.core.MethodParameter methodParameter, Type targetType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdviceAdapter
beforeBodyRead, handleEmptyBody
-
Constructor Details
-
WebhookVerifierRequestBodyAdvice
public WebhookVerifierRequestBodyAdvice(Function<String, WebhookVerifier> webhookVerifierFactory, String secret, String signatureHeaderName)
-
-
Method Details
-
githubSha1
-
githubSha256
-
supports
-
afterBodyRead
public Object afterBodyRead(Object body, org.springframework.http.HttpInputMessage inputMessage, org.springframework.core.MethodParameter parameter, Type targetType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) - Specified by:
afterBodyReadin interfaceorg.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice- Overrides:
afterBodyReadin classorg.springframework.web.servlet.mvc.method.annotation.RequestBodyAdviceAdapter
-