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 Details

  • Method Details

    • githubSha1

      public static WebhookVerifierRequestBodyAdvice githubSha1(String secret)
    • githubSha256

      public static WebhookVerifierRequestBodyAdvice githubSha256(String secret)
    • supports

      public boolean supports(org.springframework.core.MethodParameter methodParameter, Type targetType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
    • 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:
      afterBodyRead in interface org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
      Overrides:
      afterBodyRead in class org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdviceAdapter