CsrfToken¶
-
class
OC\Security\CSRF\
CsrfToken
¶ - Class CsrfToken represents the stored or provided CSRF token. To mitigateBREACH alike vulnerabilities the token is returned in an encrypted value aswell in an unencrypted value. For display measures to the user always theunencrypted one should be chosen.
Source: lib/private/Security/CSRF/CsrfToken.php#39
Properties¶
Methods¶
-
public
OC\Security\CSRF\CsrfToken::
__construct
($value)¶ Source: Parameters: - $value (string) Value of the token. Can be encrypted or not encrypted.
-
public
OC\Security\CSRF\CsrfToken::
getEncryptedValue
()¶ - Encrypted value of the token. This is used to mitigate BREACH alikevulnerabilities. For display measures do use this functionality.
Source: lib/private/Security/CSRF/CsrfToken.php#58 Returns: string
-
public
OC\Security\CSRF\CsrfToken::
getDecryptedValue
()¶ - The unencrypted value of the token. Used for decrypting an alreadyencrypted token.
Source: lib/private/Security/CSRF/CsrfToken.php#73 Returns: string