PHP Class ManaPHP\Security\CsrfToken

Inheritance: extends ManaPHP\Component, implements ManaPHP\Security\CsrfTokenInterface
Show file Open project: manaphp/manaphp

Protected Properties

Property Type Description
$_enabled boolean
$_header string
$_length integer
$_name string
$_useCookie boolean

Public Methods

Method Description
__construct ( integer | string | array $options = [] ) CsrfToken constructor.
__toString ( ) : string
disable ( ) : static
get ( ) : string
verify ( ) : void

Protected Methods

Method Description
_generateToken ( ) : string

Method Details

__construct() public method

CsrfToken constructor.
public __construct ( integer | string | array $options = [] )
$options integer | string | array

__toString() public method

public __toString ( ) : string
return string

_generateToken() protected method

protected _generateToken ( ) : string
return string

disable() public method

public disable ( ) : static
return static

get() public method

public get ( ) : string
return string

verify() public method

public verify ( ) : void
return void

Property Details

$_enabled protected property

protected bool $_enabled
return boolean

$_header protected property

protected string $_header
return string

$_length protected property

protected int $_length
return integer

$_name protected property

protected string $_name
return string

$_useCookie protected property

protected bool $_useCookie
return boolean