LINE Messaging API SDK for PHP

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
throws
InvalidSignatureException

When empty signature is given.

Return values
bool

Request is valid or not.

Search results