SignatureValidator
in package
A validator class of signature.
Table of Contents
- validateSignature() : bool
- Validate request with signature.
Methods
validateSignature()
Validate request with signature.
public
static validateSignature(string $body, string $channelSecret, string $signature) : bool
Parameters
- $body : string
-
Request body.
- $channelSecret : string
-
Your channel secret.
- $signature : string
-
Signature (probably retrieve from HTTP header).
Tags
Return values
bool —Request is valid or not.