Options related to creation of new tokens.
If any expiresInMinutes, audience, subject, issuer are not provided, there is no default. The jwt generated won't include those properties in the payload.
Generated JWTs will include an iat claim by default unless noTimestamp is specified.
package |
Default |
---|
__construct( $jwtOptions = null)
mixed | null
addAudience( $audiences) : $this
string
$this
addPermission( $permissions) : $this
string
$this
getAlgorithm() : string
string
getAudience() : array
array
getExpiresInSeconds() : integer
integer
getHeader() : array
array
getIssuer() : string
string
getLeeway() : integer
integer
getPermissions() : array
array
getSubject() : string
string
isIgnoreExpiration() : boolean
boolean
isNoTimestamp() : boolean
boolean
setAlgorithm( $algorithm) : $this
string
$this
setAudience( $audience) : $this
string
$this
setExpiresInMinutes( $expiresInMinutes) : $this
integer
$this
setExpiresInSeconds( $expiresInSeconds) : $this
integer
$this
setHeader( $header) : $this
array
$this
setIgnoreExpiration( $ignoreExpiration) : $this
boolean
$this
setIssuer( $issuer) : $this
string
$this
setLeeway( $leeway) : $this
integer
$this
setNoTimestamp( $noTimestamp) : $this
boolean
$this
setPermissions( $permissions) : $this
string
$this
setSubject( $subject) : $this
string
$this