HumHub Documentation (unofficial)

HeaderChecker

Table of Contents

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.

Methods

checkHeader()

This method is called when the header parameter is present.

public checkHeader(mixed $value) : void

If for some reason the value is not valid, an InvalidHeaderException must be thrown.

Parameters
$value : mixed
Tags
throws
InvalidHeaderException

if the header parameter is invalid

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