Menu

## SignatureValidator
in package

SignatureValidator.php : 28

A validator class of signature.

### Table of Contents

validateSignature() : bool
  Validate request with signature.

### Methods

#### validateSignature()

SignatureValidator.php : 39

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