\Opis\ClosureSecurityProvider

Summary

Methods
Properties
Constants
__construct()
sign()
verify()
No public properties found
No constants found
No protected methods found
$secret
N/A
No private methods found
No private properties found
N/A

Properties

$secret

$secret : string

Type

string

Methods

__construct()

__construct(string  $secret) 

SecurityProvider constructor.

Parameters

string $secret

sign()

sign(string  $closure) : array

Sign serialized closure

Parameters

string $closure

Returns

array

verify()

verify(array  $data) : boolean

Verify signature

Parameters

array $data

Returns

boolean