HumHub Documentation (unofficial)

UnencodedPayloadChecker
in package
implements HeaderChecker

FinalYes

This class is a header parameter checker.

When the "b64" is present, it will check if the value is a boolean or not.

The use of this checker will allow the use of token with unencoded payload.

Table of Contents

Interfaces

HeaderChecker

Constants

HEADER_NAME  = 'b64'

Methods

checkHeader()  : void
This method is called when the header parameter is present.
protectedHeaderOnly()  : bool
When true, the header parameter to be checked MUST be set in the protected header of the token.
supportedHeader()  : string
The method returns the header parameter to be checked.

Constants

Methods

checkHeader()

This method is called when the header parameter is present.

public checkHeader(mixed $value) : void
Parameters
$value : mixed
Tags
throws
InvalidHeaderException

if the header parameter "b64" is not a boolean

protectedHeaderOnly()

When true, the header parameter to be checked MUST be set in the protected header of the token.

public protectedHeaderOnly() : bool
Return values
bool

supportedHeader()

The method returns the header parameter to be checked.

public supportedHeader() : string
Return values
string

        
On this page

Search results