SessionStorage¶
-
class
OC\Security\CSRF\TokenStorage\
SessionStorage
¶ - Class SessionStorage provides the session storage
Source: lib/private/Security/CSRF/TokenStorage/SessionStorage.php#38
Properties¶
Methods¶
-
public
OC\Security\CSRF\TokenStorage\SessionStorage::
__construct
($session)¶ Source: lib/private/Security/CSRF/TokenStorage/SessionStorage.php#45
Parameters: - $session (
OCP\ISession
)
- $session (
-
public
OC\Security\CSRF\TokenStorage\SessionStorage::
setSession
($session)¶ Source: lib/private/Security/CSRF/TokenStorage/SessionStorage.php#52
Parameters: - $session (
OCP\ISession
)
- $session (
-
public
OC\Security\CSRF\TokenStorage\SessionStorage::
getToken
()¶ - Returns the current token or throws an exception if none is found.
Source: lib/private/Security/CSRF/TokenStorage/SessionStorage.php#62 Returns: string Throws: \Exception
-
public
OC\Security\CSRF\TokenStorage\SessionStorage::
setToken
($value)¶ - Set the valid current token to $value.
Source: lib/private/Security/CSRF/TokenStorage/SessionStorage.php#76
Parameters: - $value (string)
-
public
OC\Security\CSRF\TokenStorage\SessionStorage::
removeToken
()¶ - Removes the current token.
Source: lib/private/Security/CSRF/TokenStorage/SessionStorage.php#83
-
public
OC\Security\CSRF\TokenStorage\SessionStorage::
hasToken
()¶ - Whether the storage has a storage.
Source: lib/private/Security/CSRF/TokenStorage/SessionStorage.php#91 Returns: bool