PHP Class Lcobucci\JWT\ValidationData

Since: 2.0.0
Author: Luís Otávio Cobucci Oblonczyk ([email protected])
Show file Open project: lcobucci/jwt Class Usage Examples

Public Methods

Method Description
__construct ( integer $currentTime = null ) Initializes the object
get ( string $name ) : mixed Returns the requested item
has ( string $name ) : boolean Returns if the item is present
setAudience ( string $audience ) Configures the audience
setCurrentTime ( integer $currentTime ) Configures the time that "iat", "nbf" and "exp" should be based on
setId ( string $id ) Configures the id
setIssuer ( string | array $issuer ) Configures the issuer
setSubject ( string $subject ) Configures the subject

Method Details

__construct() public method

Initializes the object
public __construct ( integer $currentTime = null )
$currentTime integer

get() public method

Returns the requested item
public get ( string $name ) : mixed
$name string
return mixed

has() public method

Returns if the item is present
public has ( string $name ) : boolean
$name string
return boolean

setAudience() public method

Configures the audience
public setAudience ( string $audience )
$audience string

setCurrentTime() public method

Configures the time that "iat", "nbf" and "exp" should be based on
public setCurrentTime ( integer $currentTime )
$currentTime integer

setId() public method

Configures the id
public setId ( string $id )
$id string

setIssuer() public method

Configures the issuer
public setIssuer ( string | array $issuer )
$issuer string | array

setSubject() public method

Configures the subject
public setSubject ( string $subject )
$subject string