Method |
Description |
|
absoluteUrl ( string $url ) : string |
Returns an absolute URL for the given one |
|
btwoc ( string $str ) : string |
Takes an arbitrary precision integer and returns its shortest big-endian
two's complement representation. |
|
computeDhSecret ( string $pub_key, mixed $dh ) : string |
Computes the shared secret from the private DH value $dh and the other
party's public value in $pub_key |
|
createDhKey ( string $p, string $g, string $priv_key = null ) : mixed |
Performs the first step of a Diffie-Hellman key exchange by generating
private and public DH values based on given prime number $p and
generator $g. Both sides of key exchange MUST have the same prime number
and generator. In this case they will able to create a random shared
secret that is never send from one to the other. |
|
digest ( string $func, string $data ) : string |
Generates a hash value (message digest) according to given algorithm. |
|
getDhKeyDetails ( mixed $dh ) : array |
Returns an associative array with Diffie-Hellman key components in
binary representation. The array includes original prime number 'p' and
generator 'g', random private key 'priv_key' and corresponding public
key 'pub_key'. |
|
hashHmac ( string $macFunc, string $data, string $secret ) : string |
Generates a keyed hash value using the HMAC method. It uses ext/hash
if available or user-level PHP implementation, that is not significantly
slower. |
|
normalize ( &$id ) : boolean |
Normalizes OpenID identifier that can be URL or XRI name. |
|
normalizeUrl ( &$id ) : boolean |
Normalizes URL according to RFC 3986 to use it in comparison operations. |
|
paramsToQuery ( array $params ) : string |
Converts variable/value pairs into URL encoded query string |
|
randomBytes ( integer $len ) : string |
Produces string of random byte of given length. |
|
redirect ( string $url, array $params = null, Zend_Controller_Response_Abstract $response = null, string $method = 'GET' ) |
Performs a HTTP redirection to specified URL with additional data. |
|
selfUrl ( ) : string |
Returns a full URL that was requested on current HTTP request. |
|
setSelfUrl ( string $selfUrl = null ) : string |
Sets alternative request URL that can be used to override the default
selfUrl() response |
|
strlen ( string $str ) : integer |
Returns lenght of binary string in bytes |
|