Basic JSON Web Token support
Methods | ||
---|---|---|
public
|
__construct(KeyAbstract $key, string $algorithm = 'HS256')
|
# |
public
|
setAlgorithm(string $algorithm): JsonWebToken
|
# |
public
|
decode(string $jwtString, array|Traversable $assertClaims = []): object|false
|
# |
public
|
create(array|ArrayObject $payload, int $expirationOffset = 0): string
|
# |
Properties | |||
---|---|---|---|
protected
|
KeyAbstract
|
$key
|
# |
protected
|
string
|
$algorithm = 'HS256'
|
# |
protected
|
array
|
$claims = []
|
# |