Filestack\FilestackSecurity
Class representing a Filestack Security object. Use this clas if you have security enabled on your apikey.
Synopsis
- // constants
- const DEFAULT_EXPIRY = 3600;
- // members
- protected $allowed_options;
- protected $secret;
- public $policy;
- public $signature;
- public $options;
- // methods
- public void __construct()
- private array generate()
- public string signUrl()
- public bool verify()
- protected string createSignature()
- protected bool validateOptions()
- protected void urlsafeB64encode()
Coverage
Methods | 0% | 0 / 7 |
Lines | 0% | / |
Constants
Name | Value |
---|---|
DEFAULT_EXPIRY | 3600 |
Members
protected
- $allowed_options
- $secret
public
- $options
- $policy
- $signature
Methods
private
- generate() — generate a security policy and signature
protected
- createSignature() — Generate a signature
- urlsafeB64encode() — Helper functions
- validateOptions() — Validate options are allowed
public
- __construct() — Filestack Security constructor
- signUrl() — Append policy and signature to url
- verify() — Verify that a policy is valid
History
-
2017-11-16T03:28:33+00:00 (commit #e9fdd71)
Author: Huey Ly (huey@webmail.us) / Commiter: Huey Ly (huey@webmail.us)
fixed security option default expiry
-
2017-08-16T17:41:07+00:00 (commit #4e28363)
Author: Huey Ly (huey@webmail.us) / Commiter: Huey Ly (huey@webmail.us)
added phpdox for documentation generation generated docs using phpdox
-
2017-08-16T16:39:59+00:00 (commit #674be05)
Author: Huey Ly (huey@webmail.us) / Commiter: Huey Ly (huey@webmail.us)
added phpdox for documentation generation
-
2017-05-26T15:52:48+00:00 (commit #1273bba)
Author: Huey Ly (huey@webmail.us) / Commiter: Huey Ly (huey@webmail.us)
added getConvertTaskInfo function to client and filelink objects
-
2017-05-18T21:54:39+00:00 (commit #74f4ec3)
Author: Huey Ly (huey@webmail.us) / Commiter: Huey Ly (huey@webmail.us)
switched to use phpmd for codeclimate
-
2017-05-18T21:25:18+00:00 (commit #39bb65b)
Author: Huey Ly (huey@webmail.us) / Commiter: Huey Ly (huey@webmail.us)
setup codeclimate
-
2017-05-10T21:17:45+00:00 (commit #515bb43)
Author: Huey Ly (huey@webmail.us) / Commiter: Huey Ly (huey@webmail.us)
got rid of PROCESSING_URL and updated all occurrences to use CDN_URL
-
2017-05-09T17:18:45+00:00 (commit #5c9df3d)
Author: Huey Ly (huey@webmail.us) / Commiter: Huey Ly (huey@webmail.us)
added coverage settings to phpunit. add tests to reach 100% coverage
-
2017-05-04T20:33:57+00:00 (commit #2b25400)
Author: Huey Ly (huey@webmail.us) / Commiter: Huey Ly (huey@webmail.us)
installed and ran php-cs-fixer. updated examples, added real tests but marked as skipped
-
2017-05-04T16:22:33+00:00 (commit #e5e1cad)
Author: Huey Ly (huey@webmail.us) / Commiter: Huey Ly (huey@webmail.us)
added security class