HumHub Documentation (unofficial)

JWSTokenSupport
in package
implements TokenTypeSupport

FinalYes

Table of Contents

Interfaces

TokenTypeSupport

Methods

retrieveTokenHeaders()  : void
This method will retrieve the protect and unprotected headers of the token for the given index.
supports()  : bool
This method returns true if the token in argument is supported, otherwise false.

Methods

retrieveTokenHeaders()

This method will retrieve the protect and unprotected headers of the token for the given index.

public retrieveTokenHeaders(JWT $jwt, int $index, array<string|int, mixed> &$protectedHeader, array<string|int, mixed> &$unprotectedHeader) : void
Parameters
$jwt : JWT
$index : int
$protectedHeader : array<string|int, mixed>
$unprotectedHeader : array<string|int, mixed>
Tags
throws
InvalidArgumentException

if the signature index does not exist

supports()

This method returns true if the token in argument is supported, otherwise false.

public supports(JWT $jwt) : bool
Parameters
$jwt : JWT
Return values
bool

        
On this page

Search results