PHP Interface Jose\Object\JWTInterface

Afficher le fichier Open project: spomky-labs/jose Interface Usage Examples

Méthodes publiques

Méthode Description
getClaim ( string $key ) : mixed | null Returns the value of the payload of the specified key.
getClaims ( ) : array Returns the claims.
getPayload ( ) : mixed Returns the payload of the JWT.
hasClaim ( string $key ) : boolean
hasClaims ( ) : boolean
withPayload ( mixed $payload ) : Jose\Object\JWTInterface

Method Details

getClaim() public méthode

Returns the value of the payload of the specified key.
public getClaim ( string $key ) : mixed | null
$key string The key
Résultat mixed | null Payload value

getClaims() public méthode

Returns the claims.
public getClaims ( ) : array
Résultat array Payload value

getPayload() public méthode

Returns the payload of the JWT.
public getPayload ( ) : mixed
Résultat mixed Payload

hasClaim() public méthode

public hasClaim ( string $key ) : boolean
$key string The key
Résultat boolean

hasClaims() public méthode

public hasClaims ( ) : boolean
Résultat boolean

withPayload() public méthode

public withPayload ( mixed $payload ) : Jose\Object\JWTInterface
$payload mixed
Résultat Jose\Object\JWTInterface