Class JwtClaimsSet
java.lang.Object
com.codename1.backend.security.oauth2.jwt.JwtClaimsSet
The claims of a token that is about to be signed.
long now = System.currentTimeMillis() / 1000;
JwtClaimsSet claims = JwtClaimsSet.builder()
.issuer("https://orders.example.com")
.subject(user.getId())
.audience("orders-api")
.issuedAt(now)
.expiresAt(now + 300)
.claim("scope", "orders:read")
.build();
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic JwtClaimsSet.Builderbuilder()static JwtClaimsSet.Builderfrom(JwtClaimsSet claims) A builder that starts from these claims.
-
Method Details
-
builder
-
from
A builder that starts from these claims. -
getClaims
-
getClaim
-