Uses of Class
com.auth0.jwt.JWTCreator.Builder
Packages that use JWTCreator.Builder
-
Uses of JWTCreator.Builder in com.auth0.jwt
Methods in com.auth0.jwt that return JWTCreator.BuilderModifier and TypeMethodDescriptionstatic JWTCreator.Builder
JWT.create()
Returns a Json Web Token builder used to create and sign tokens.JWTCreator.Builder.withArrayClaim
(String name, Integer[] items) Add a custom Array Claim with the given items.JWTCreator.Builder.withArrayClaim
(String name, Long[] items) Add a custom Array Claim with the given items.JWTCreator.Builder.withArrayClaim
(String name, String[] items) Add a custom Array Claim with the given items.JWTCreator.Builder.withAudience
(String... audience) Add a specific Audience ("aud") claim to the Payload.Add a custom Claim value.Add a custom Claim value.Add a custom Claim value.Add a custom Claim value.Add a custom Claim value.Add a custom Claim value.Add a custom Claim value.Add a custom List Claim with the given items.Add a custom Map Claim with the given items.JWTCreator.Builder.withExpiresAt
(Instant expiresAt) Add a specific Expires At ("exp") claim to the payload.JWTCreator.Builder.withExpiresAt
(Date expiresAt) Add a specific Expires At ("exp") claim to the payload.JWTCreator.Builder.withHeader
(String headerClaimsJson) Add specific Claims to set as the Header.JWTCreator.Builder.withHeader
(Map<String, Object> headerClaims) Add specific Claims to set as the Header.JWTCreator.Builder.withIssuedAt
(Instant issuedAt) Add a specific Issued At ("iat") claim to the Payload.JWTCreator.Builder.withIssuedAt
(Date issuedAt) Add a specific Issued At ("iat") claim to the Payload.JWTCreator.Builder.withIssuer
(String issuer) Add a specific Issuer ("iss") claim to the Payload.Add a specific JWT Id ("jti") claim to the Payload.Add a specific Key Id ("kid") claim to the Header.JWTCreator.Builder.withNotBefore
(Instant notBefore) Add a specific Not Before ("nbf") claim to the Payload.JWTCreator.Builder.withNotBefore
(Date notBefore) Add a specific Not Before ("nbf") claim to the Payload.JWTCreator.Builder.withNullClaim
(String name) Add a custom claim with null value.JWTCreator.Builder.withPayload
(String payloadClaimsJson) Add specific Claims to set as the Payload.JWTCreator.Builder.withPayload
(Map<String, ?> payloadClaims) Add specific Claims to set as the Payload.JWTCreator.Builder.withSubject
(String subject) Add a specific Subject ("sub") claim to the Payload.