JsonWebToken

package

Default

Methods

JsonWebToken constructor.

__construct(\KeyValueCollection $headers, \KeyValueCollection $payload) 
Throws
\JsonWebTokenException

Arguments

__toString

__toString() 

base64urlEncode

base64urlEncode( $input) 

Arguments

$input

getHeaders

getHeaders() 

getHeaderString

getHeaderString() 

getPayload

getPayload() 

getPayloadString

getPayloadString() 

isIncludeSecretInSignaturePayload

isIncludeSecretInSignaturePayload() : boolean

Response

boolean

isUseRawHmacForSignature

isUseRawHmacForSignature() : boolean

Response

boolean

makeSignature

makeSignature(\NonEmptyStringType $secret) 

Arguments

setHeaders

setHeaders(\KeyValueCollection $headers) 
Throws
\JsonWebTokenException

Arguments

setIncludeSecretInSignaturePayload

setIncludeSecretInSignaturePayload(boolean $includeSecretInSignaturePayload) 

Arguments

$includeSecretInSignaturePayload

boolean

setPayload

setPayload(\KeyValueCollection $payload) 

Arguments

setSecret

setSecret(\NonEmptyStringType $secret) 

Arguments

setUseRawHmacForSignature

setUseRawHmacForSignature(boolean $useRawHmacForSignature) 

Arguments

$useRawHmacForSignature

boolean

Properties

headers

headers : 

Type(s)

payload

payload : 

Type(s)

secret

secret : \NonEmptyStringType
var

Type(s)

\NonEmptyStringType

includeSecretInSignaturePayload

includeSecretInSignaturePayload : boolean
var

Type(s)

boolean

useRawHmacForSignature

useRawHmacForSignature : boolean
var

Type(s)

boolean