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
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
HEADER_NAME
private
mixed
HEADER_NAME
= 'b64'
Methods
checkHeader()
This method is called when the header parameter is present.
public
checkHeader(mixed $value) : void
Parameters
- $value : mixed
Tags
protectedHeaderOnly()
When true, the header parameter to be checked MUST be set in the protected header of the token.
public
protectedHeaderOnly() : bool
Return values
boolsupportedHeader()
The method returns the header parameter to be checked.
public
supportedHeader() : string