CRM_Utils_Signer
class CRM_Utils_Signer
A utility which signs and verifies a list of key-value pairs
FIXME: Add TTL support?
Constants
SALT_LEN |
Expected length of the salt |
Methods
__construct(string $secret, array $paramNames)
Instantiate a signature-processor
string,
sign(array $params, string $salt = NULL)
Generate a signature for a set of key-value pairs
bool,
validate(string $token, array $params)
Determine whether a token represents a proper signature for $params
string
createSalt()
No description
Details
at line 66
__construct(string $secret, array $paramNames)
Instantiate a signature-processor
at line 85
string,
sign(array $params, string $salt = NULL)
Generate a signature for a set of key-value pairs
at line 123
bool,
validate(string $token, array $params)
Determine whether a token represents a proper signature for $params