10Duke Java Core
Loading...
Searching...
No Matches
tenduke.sdk.core.model.jwt.StandardJwtClaims Class Reference

Detailed Description

JWT claim names that are registered and standard to JWTs.

Static Public Member Functions

static boolean isSpecDate (final String claim)
 Checks if the claim should represent a date.
 

Static Public Attributes

static final JwtClaim AUDIENCE = new JwtClaim("aud")
 JWT claim for audience.
 
static final JwtClaim EXPIRATION = new JwtClaim("exp", Long.class)
 JWT claim for expiration.
 
static final JwtClaim ID = new JwtClaim("jti")
 JWT claim for token id.
 
static final JwtClaim ISSUED_AT = new JwtClaim("iat", Long.class)
 JWT claim for issued at.
 
static final JwtClaim ISSUER = new JwtClaim("iss")
 JWT claim for issuer.
 
static final JwtClaim NOT_BEFORE = new JwtClaim("nbf", Long.class)
 JWT claim for not before.
 
static final JwtClaim SUBJECT = new JwtClaim("sub")
 JWT claim for subject.
 

Protected Member Functions

 StandardJwtClaims ()
 Class constructor.
 

Member Function Documentation

◆ isSpecDate()

static boolean tenduke.sdk.core.model.jwt.StandardJwtClaims.isSpecDate ( final String claim)
static

Checks if the claim should represent a date.

Parameters
claimto check.
Returns
true if claim should be a date, otherwise false.

Member Data Documentation

◆ EXPIRATION

final JwtClaim tenduke.sdk.core.model.jwt.StandardJwtClaims.EXPIRATION = new JwtClaim("exp", Long.class)
static

JWT claim for expiration.

Claim value is expected to be type of Long.

◆ ISSUED_AT

final JwtClaim tenduke.sdk.core.model.jwt.StandardJwtClaims.ISSUED_AT = new JwtClaim("iat", Long.class)
static

JWT claim for issued at.

Claim value is expected to be type of Long.

◆ NOT_BEFORE

final JwtClaim tenduke.sdk.core.model.jwt.StandardJwtClaims.NOT_BEFORE = new JwtClaim("nbf", Long.class)
static

JWT claim for not before.

Claim value is expected to be type of Long.


The documentation for this class was generated from the following file: