Class to represent a platform nonce. More...
Public Member Functions | |
__construct (Platform $platform, ?string $value=null) | |
Class constructor. | |
bool | load () |
Load a nonce value from the database. | |
bool | save () |
Save a nonce value in the database. | |
bool | delete () |
Delete a nonce value in the database. | |
Platform | getPlatform () |
Get platform. | |
string null | getValue () |
Get nonce value. | |
Public Attributes | |
const | MAX_NONCE_AGE = 30 |
Maximum age nonce values will be retained for (in minutes). | |
int | $expires |
Timestamp for when the nonce value expires. | |
Static Public Attributes | |
static int | $maximumLength = 50 |
Maximum length which can be stored. | |
Class to represent a platform nonce.
__construct | ( | Platform | $platform, |
?string | $value = null ) |
Class constructor.
Platform | $platform | Platform object |
string | null | $value | Nonce value (optional, default is null) |
bool delete | ( | ) |
Delete a nonce value in the database.
Platform getPlatform | ( | ) |
Get platform.
Referenced by DataConnector_oci8\getSharesResourceLink(), and DataConnector_pdo\getSharesResourceLink().
string null getValue | ( | ) |
Get nonce value.
Referenced by DataConnector_oci8\getSharesResourceLink(), and DataConnector_pdo\getSharesResourceLink().
bool load | ( | ) |
Load a nonce value from the database.
bool save | ( | ) |
Save a nonce value in the database.
|
static |
Maximum length which can be stored.
Characters are removed from the beginning of the value when too long.