PHP Class Emarref\Jwt\Claim\PublicClaim

Claim Names can be defined at will by those using JWTs. However, in order to prevent collisions, any new Claim Name should either be registered in the IANA JSON Web Token Claims registry defined in Section 10.1 or be a Public Name: a value that contains a Collision-Resistant Name. In each case, the definer of the name or value needs to take reasonable precautions to make sure they are in control of the part of the namespace they use to define the Claim Name.
Inheritance: extends AbstractClaim
Show file Open project: emarref/jwt

Public Methods

Method Description
__construct ( string $name = null, mixed $value = null )
getName ( ) : string
setName ( string $name )

Method Details

__construct() public method

public __construct ( string $name = null, mixed $value = null )
$name string
$value mixed

getName() public method

public getName ( ) : string
return string

setName() public method

public setName ( string $name )
$name string