Filestack\FilestackSecurity::generate
generate a security policy and signature
Signature
private function generate(string
$secret,
[array
$options = ] )
Parameters
$secret— string- random hash secret
$options— array- array of policy options
Returns
- array
- ['policy'=>'encrypted_value', 'signature'=>'encrypted_value']
Errors/Exceptions
-
FilestackException - e.g. policy option not allowed
Test Coverage
Information
- Coverage: / Lines (%)
- Tests: 0
- Passed: 0 (0%)