Method |
Description |
|
__construct ( array $headers = ['alg' => 'none'], array $claims = [], Lcobucci\JWT\Signature $signature = null, array $payload = ['', ''] ) |
Initializes the object |
|
__toString ( ) : string |
Returns an encoded representation of the token |
|
getClaim ( string $name, mixed $default = null ) : mixed |
Returns the value of a token claim |
|
getClaims ( ) : array |
Returns the token claim set |
|
getHeader ( string $name, mixed $default = null ) : mixed |
Returns the value of a token header |
|
getHeaders ( ) : array |
Returns the token headers |
|
getPayload ( ) : string |
Returns the token payload |
|
hasClaim ( string $name ) : boolean |
Returns if the claim is configured |
|
hasHeader ( string $name ) : boolean |
Returns if the header is configured |
|
isExpired ( DateTimeInterfac\DateTimeInterface $now = null ) : boolean |
Determine if the token is expired. |
|
validate ( ValidationData $data ) : boolean |
Validates if the token is valid |
|
verify ( Lcobucci\JWT\Signer $signer, Lcobucci\JWT\Signer\Key | string $key ) : boolean |
Verify if the key matches with the one that created the signature |
|