Newer Version Available
JWT Class
Generates the JSON Claims Set in a JSON Web Token (JWT). The resulting
Base64-encoded payload can be passed as an argument to create an instance of the Auth.JWS class.
Namespace
Usage
Use the methods in this class to generate the payload in a JWT bearer token.
JWT Methods
The following are methods for JWT. All are instance methods.
getNbfClockSkew()
Returns the not before claim that identifies the time before which the
JWT must not be accepted for processing, while allowing some leeway for clock
skew.
Signature
public Integer getNbfClockSkew()
Return Value
Type: Integer
setAud(aud)
setIss(iss)
setNbfClockSkew(nbfClockSkew)
Signature
public void setNbfClockSkew(Integer nbfClockSkew)
Parameters
- nbfClockSkew
- Type: Integer
Return Value
Type: void
setSub(sub)
setValidityLength(validityLength)
Sets the length of time (in seconds) that the JWT is valid, which
affects the expiration claim. Returned by the getValidityLength() method.
Signature
public void setValidityLength(Integer validityLength)
Parameters
- validityLength
- Type: Integer
Return Value
Type: void