CsrfTokenGenerator¶
-
class
OC\Security\CSRF\
CsrfTokenGenerator
¶ - Class CsrfTokenGenerator is used to generate a cryptographically securepseudo-random number for the token.
Source: lib/private/Security/CSRF/CsrfTokenGenerator.php#37
Properties¶
Methods¶
-
public
OC\Security\CSRF\CsrfTokenGenerator::
__construct
($random)¶ Source: Parameters: - $random (
OCP\Security\ISecureRandom
)
- $random (
-
public
OC\Security\CSRF\CsrfTokenGenerator::
generateToken
($length=32)¶ - Generate a new CSRF token.
Source: Parameters: - $length (int) Length of the token in characters.
Returns: string