Class RequestVerification
java.lang.Object
com.slack.api.bolt.middleware.builtin.RequestVerification
- All Implemented Interfaces:
Middleware
public class RequestVerification extends java.lang.Object implements Middleware
Verifies if the x-slack-signature, x-slack-request-timestamp are valid.
-
Constructor Summary
Constructors Constructor Description RequestVerification(SlackSignature.Verifier verifier)
-
Method Summary
Modifier and Type Method Description Response
apply(Request req, Response resp, MiddlewareChain chain)
-
Constructor Details
-
Method Details
-
apply
public Response apply(Request req, Response resp, MiddlewareChain chain) throws java.lang.Exception- Specified by:
apply
in interfaceMiddleware
- Throws:
java.lang.Exception
-