PHP Class Nelmio\SecurityBundle\ContentSecurityPolicy\NonceGenerator

显示文件 Open project: nelmio/NelmioSecurityBundle

Public Methods

Method Description
__construct ( $numberOfBytes )
generate ( ) : string Generates a nonce value that is later used in script and style policies.

Method Details

__construct() public method

public __construct ( $numberOfBytes )

generate() public method

Generates a nonce value that is later used in script and style policies.
public generate ( ) : string
return string