CsrfTokenManager¶
-
class
OC\Security\CSRF\
CsrfTokenManager
¶ - Class CsrfTokenManager is the manager for all CSRF token related activities.
Source: lib/private/Security/CSRF/CsrfTokenManager.php#37
Properties¶
Methods¶
-
public
OC\Security\CSRF\CsrfTokenManager::
__construct
($tokenGenerator, $storageInterface)¶ Source: Parameters: - $tokenGenerator (
OC\Security\CSRF\CsrfTokenGenerator
) - $storageInterface (
OC\Security\CSRF\TokenStorage\SessionStorage
)
- $tokenGenerator (
-
public
OC\Security\CSRF\CsrfTokenManager::
getToken
()¶ - Returns the current CSRF token, if none set it will create a new one.
Source: lib/private/Security/CSRF/CsrfTokenManager.php#60 Returns: \OC\Security\CSRF\CsrfToken
-
public
OC\Security\CSRF\CsrfTokenManager::
refreshToken
()¶ - Invalidates any current token and sets a new one.
Source: lib/private/Security/CSRF/CsrfTokenManager.php#81 Returns: \OC\Security\CSRF\CsrfToken
-
public
OC\Security\CSRF\CsrfTokenManager::
removeToken
()¶ - Remove the current token from the storage.
Source: lib/private/Security/CSRF/CsrfTokenManager.php#91
-
public
OC\Security\CSRF\CsrfTokenManager::
isTokenValid
($token)¶ - Verifies whether the provided token is valid.
Source: Parameters: - $token (
OC\Security\CSRF\CsrfToken
)
Returns: bool
- $token (