PHP Interface Jose\Object\JWTInterface

Mostrar archivo Open project: spomky-labs/jose Interface Usage Examples

Public Methods

Method 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 method

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

getClaims() public method

Returns the claims.
public getClaims ( ) : array
return array Payload value

getPayload() public method

Returns the payload of the JWT.
public getPayload ( ) : mixed
return mixed Payload

hasClaim() public method

public hasClaim ( string $key ) : boolean
$key string The key
return boolean

hasClaims() public method

public hasClaims ( ) : boolean
return boolean

withPayload() public method

public withPayload ( mixed $payload ) : Jose\Object\JWTInterface
$payload mixed
return Jose\Object\JWTInterface