PHP Class Emarref\Jwt\Serialization\Compact

Inheritance: implements Emarref\Jwt\Serialization\SerializerInterface
Afficher le fichier Open project: emarref/jwt Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Emarref\Jwt\Encoding\EncoderInterface $encoding, Factory $headerParameterFactory, Factory $claimFactory )
deserialize ( string $jwt ) : Token
serialize ( Token $token ) : string

Méthodes protégées

Méthode Description
parseHeaders ( string $headersJson ) : Emarref\Jwt\HeaderParameter\ParameterInterface[]
parsePayload ( string $payloadJson ) : Emarref\Jwt\Claim\ClaimInterface[]

Method Details

__construct() public méthode

public __construct ( Emarref\Jwt\Encoding\EncoderInterface $encoding, Factory $headerParameterFactory, Factory $claimFactory )
$encoding Emarref\Jwt\Encoding\EncoderInterface
$headerParameterFactory Emarref\Jwt\HeaderParameter\Factory
$claimFactory Emarref\Jwt\Claim\Factory

deserialize() public méthode

public deserialize ( string $jwt ) : Token
$jwt string
Résultat Emarref\Jwt\Token

parseHeaders() protected méthode

protected parseHeaders ( string $headersJson ) : Emarref\Jwt\HeaderParameter\ParameterInterface[]
$headersJson string
Résultat Emarref\Jwt\HeaderParameter\ParameterInterface[]

parsePayload() protected méthode

protected parsePayload ( string $payloadJson ) : Emarref\Jwt\Claim\ClaimInterface[]
$payloadJson string
Résultat Emarref\Jwt\Claim\ClaimInterface[]

serialize() public méthode

public serialize ( Token $token ) : string
$token Emarref\Jwt\Token
Résultat string