Ubiquity\security\csrf$CsrfManager This class is part of Ubiquity.
More...
Ubiquity\security\csrf$CsrfManager This class is part of Ubiquity.
- Author
- jc
- Version
- 1.0.0
Definition at line 18 of file CsrfManager.php.
◆ generateValue()
static generateValue |
( |
?string |
$value = null | ) |
|
|
static |
Generates a token value using the active validator.
- Parameters
-
- Returns
- string
Definition at line 113 of file CsrfManager.php.
◆ getSelector()
static getSelector |
( |
string |
$name | ) |
|
|
static |
Return a selector corresponding to a name, using the active selector.
- Parameters
-
- Returns
- string
Definition at line 103 of file CsrfManager.php.
◆ getSelectorClass()
static getSelectorClass |
( |
| ) |
|
|
static |
◆ getStorageClass()
static getStorageClass |
( |
| ) |
|
|
static |
◆ getToken()
Generates or retrieve and return a token.
- Parameters
-
- Returns
- \Ubiquity\security\csrf\UToken
Definition at line 50 of file CsrfManager.php.
◆ getValidatorClass()
static getValidatorClass |
( |
| ) |
|
|
static |
◆ isStarted()
◆ isValid()
static isValid |
( |
string |
$id, |
|
|
string |
$value |
|
) |
| |
|
static |
Returns whether the given CSRF token is valid, given his id.
- Parameters
-
- Returns
- bool
Definition at line 78 of file CsrfManager.php.
◆ isValidByName()
static isValidByName |
( |
string |
$name, |
|
|
string |
$value |
|
) |
| |
|
static |
Returns whether the given CSRF token is valid, given his name.
- Parameters
-
- Returns
- bool
Definition at line 93 of file CsrfManager.php.
◆ removeToken()
static removeToken |
( |
string |
$name | ) |
|
|
static |
Remove an existing token.
- Parameters
-
- Returns
- ?string
Definition at line 67 of file CsrfManager.php.
◆ start()
◆ $selector
◆ $storage
◆ $validator
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity-security/src/Ubiquity/security/csrf/CsrfManager.php