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:

lib/private/Security/CSRF/CsrfTokenManager.php#49

Parameters:
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:

lib/private/Security/CSRF/CsrfTokenManager.php#102

Parameters:
Returns:

bool