Méthode | Description | |
---|---|---|
generateNut ( integer $tif, string $key = '', string $oldnut = '' ) : string | Creates a nut from the supplied data | |
getNutDetails ( string $nut, $debug = false ) : array: | Retrieves information about the supplied nut | |
logSessionIn ( $requestNut ) | ||
setNonceSalt ( string $salt ) : void | Sets the password for nonce encryption |
Méthode | Description | |
---|---|---|
addSessionNut ( string $newNut, $sessionId ) : void | Adds a nut to the user's current session | |
base64URLDecode ( type $string ) : type | Base 64 URL decodes a string | |
base64UrlEncode ( string $string, type $stripEquals = true ) : string | Base 64 URL encodes a string | |
getCurrentSessionId ( ) : string | Gets the user's current session ID | |
getIp ( ) : string | Gets the user's IP address | |
getSessionInfo ( string $sessionId ) : array | Gets the session information that matches the supplied session ID | |
setSessionValue ( string $sessionId, string $key, string $value ) : void | Sets or updates a value in the user session |
protected addSessionNut ( string $newNut, $sessionId ) : void | ||
$newNut | string | |
Résultat | void |
protected base64URLDecode ( type $string ) : type | ||
$string | type | |
Résultat | type |
protected base64UrlEncode ( string $string, type $stripEquals = true ) : string | ||
$string | string | The string to encode |
$stripEquals | type | [Optional] Whether to strip the "=" off of the end |
Résultat | string |
public generateNut ( integer $tif, string $key = '', string $oldnut = '' ) : string | ||
$tif | integer | The action associated with the nut |
$key | string | The authentication key the nut is for |
$oldnut | string | The previous nut in this transacion. Information from this nut will be used to help store the new nut in the right session. |
Résultat | string |
abstract protected getCurrentSessionId ( ) : string | ||
Résultat | string |
public getNutDetails ( string $nut, $debug = false ) : array: | ||
$nut | string | The nonce to retrieve information on |
Résultat | array: |
abstract protected getSessionInfo ( string $sessionId ) : array | ||
$sessionId | string | |
Résultat | array |
public setNonceSalt ( string $salt ) : void | ||
$salt | string | |
Résultat | void |