Méthode | Description | |
---|---|---|
__construct ( Lcobucci\Jose\Parsing\Encoder $encoder, |
Initializes a new builder | |
canOnlyBeUsedAfter ( integer $notBefore, boolean $addHeader = false ) : |
Configures the time before which the token cannot be accepted | |
canOnlyBeUsedBy ( string $audience, boolean $addHeader = false ) : |
Configures the audience | |
expiresAt ( integer $expiration, boolean $addHeader = false ) : |
Configures the expiration time | |
getToken ( ) : |
Returns the resultant token | |
identifiedBy ( string $id, boolean $addHeader = false ) : |
Configures the token id | |
issuedAt ( integer $issuedAt, boolean $addHeader = false ) : |
Configures the time that the token was issued | |
issuedBy ( string $issuer, boolean $addHeader = false ) : |
Configures the issuer | |
relatedTo ( string $subject, boolean $addHeader = false ) : |
Configures the subject | |
sign ( Lcobucci\JWT\Signer $signer, Lcobucci\JWT\Signer\Key $key ) : |
Signs the data | |
unsign ( ) : |
Removes the signature from the builder | |
with ( string $name, mixed $value ) : |
Configures a claim item | |
withHeader ( string $name, mixed $value ) : |
Configures a header item |
Méthode | Description | |
---|---|---|
setRegisteredClaim ( string $name, mixed $value, boolean $addHeader ) : |
Configures a registed claim |
public __construct ( Lcobucci\Jose\Parsing\Encoder $encoder, |
||
$encoder | Lcobucci\Jose\Parsing\Encoder | |
$claimFactory |
public canOnlyBeUsedAfter ( integer $notBefore, boolean $addHeader = false ) : |
||
$notBefore | integer | |
$addHeader | boolean | |
Résultat |
public canOnlyBeUsedBy ( string $audience, boolean $addHeader = false ) : |
||
$audience | string | |
$addHeader | boolean | |
Résultat |
public identifiedBy ( string $id, boolean $addHeader = false ) : |
||
$id | string | |
$addHeader | boolean | |
Résultat |
public sign ( Lcobucci\JWT\Signer $signer, Lcobucci\JWT\Signer\Key $key ) : |
||
$signer | Lcobucci\JWT\Signer | |
$key | Lcobucci\JWT\Signer\Key | |
Résultat |
public unsign ( ) : |
||
Résultat |
public withHeader ( string $name, mixed $value ) : |
||
$name | string | |
$value | mixed | |
Résultat |