PHP Class Emarref\Jwt\HeaderParameter\Critical

The "crit" (critical) Header Parameter indicates that extensions to the initial RFC versions of [[ this specification ]] and [JWA] are being used that MUST be understood and processed. Its value is an array listing the Header Parameter names present in the JOSE Header that use those extensions. If any of the listed extension Header Parameters are not understood and supported by the recipient, it MUST reject the JWS. Producers MUST NOT include Header Parameter names defined by the initial RFC versions of [[ this specification ]] or [JWA] for use with JWS, duplicate names, or names that do not occur as Header Parameter names within the JOSE Header in the "crit" list. Producers MUST NOT use the empty list "[]" as the "crit" value. Recipients MAY reject the JWS if the critical list contains any Header Parameter names defined by the initial RFC versions of [[ this specification ]] or [JWA] for use with JWS, or any other constraints on its use are violated. When used, this Header Parameter MUST be integrity protected; therefore, it MUST occur only within the JWS Protected Header. Use of this Header Parameter is OPTIONAL. This Header Parameter MUST be understood and processed by implementations. An example use, along with a hypothetical "exp" (expiration-time) field is: {"alg":"ES256", "crit":["exp"], "exp":1363284000 }
Inheritance: extends AbstractParameter
Exibir arquivo Open project: emarref/jwt Class Usage Examples

Public Methods

Method Description
__construct ( array $value = [] )
addParameter ( ParameterInterface $parameter )
getName ( ) : string
setValue ( array $value )

Method Details

__construct() public method

public __construct ( array $value = [] )
$value array

addParameter() public method

public addParameter ( ParameterInterface $parameter )
$parameter ParameterInterface

getName() public method

public getName ( ) : string
return string

setValue() public method

public setValue ( array $value )
$value array