| Modifier and Type | Method | Description |
|---|---|---|
Jwt.Builder |
addHeaderClaim(java.lang.String claim,
java.lang.Object value) |
Add a generic header claim.
|
Jwt.Builder |
addPayloadClaim(java.lang.String claim,
java.lang.Object value) |
Add a generic payload claim.
|
Jwt.Builder |
address(JwtUtil.Address address) |
Address of the subject.
|
Jwt.Builder |
addScope(java.lang.String scope) |
OAuth2 scope claim to add.
|
Jwt.Builder |
algorithm(java.lang.String algorithm) |
The "alg" claim is used to define the signature algorithm.
|
Jwt.Builder |
atHash(byte[] atHash) |
Access Token hash value.
|
Jwt.Builder |
audience(java.lang.String audience) |
Audience identifies the expected recipients of this JWT (optional).
|
Jwt.Builder |
birthday(java.time.LocalDate birthday) |
Birthday of the subject.
|
Jwt |
build() |
Build and instance of the
Jwt. |
Jwt.Builder |
cHash(byte[] cHash) |
Code hash value.
|
Jwt.Builder |
contentType(java.lang.String contentType) |
This header claim should only be used when nesting or encrypting JWT.
|
Jwt.Builder |
email(java.lang.String email) |
Email claim.
|
Jwt.Builder |
emailVerified(java.lang.Boolean emailVerified) |
Claim defining whether e-mail is verified or not.
|
Jwt.Builder |
expirationTime(java.time.Instant expirationTime) |
The expiration time defines the time that this JWT loses validity.
|
Jwt.Builder |
familyName(java.lang.String familyName) |
Family name of subject (surname).
|
Jwt.Builder |
fullName(java.lang.String fullName) |
Full name of subject.
|
Jwt.Builder |
gender(java.lang.String gender) |
Gender of the subject.
|
Jwt.Builder |
givenName(java.lang.String givenName) |
Given name of subject (first name).
|
Jwt.Builder |
issuer(java.lang.String issuer) |
The issuer claim identifies the principal that issued the JWT.
|
Jwt.Builder |
issueTime(java.time.Instant issueTime) |
The issue time defines the time that this JWT was issued.
|
Jwt.Builder |
jwtId(java.lang.String jwtId) |
A unique identifier of this JWT (optional) - must be unique across issuers.
|
Jwt.Builder |
keyId(java.lang.String keyId) |
Key id to be used to sign/verify this JWT.
|
Jwt.Builder |
locale(java.util.Locale locale) |
Locale of the subject.
|
Jwt.Builder |
middleName(java.lang.String middleName) |
Middle name of subject.
|
Jwt.Builder |
nickname(java.lang.String nickname) |
Nickname of the subject.
|
Jwt.Builder |
nonce(java.lang.String nonce) |
Nonce value is used to prevent replay attacks and must be returned if it was sent in authentication request.
|
Jwt.Builder |
notBefore(java.time.Instant notBefore) |
The not before time defines the time that this JWT starts being valid.
|
Jwt.Builder |
phoneNumber(java.lang.String phoneNumber) |
Phone number of the subject.
|
Jwt.Builder |
phoneNumberVerified(java.lang.Boolean phoneNumberVerified) |
Whether the phone number is verified or not.
|
Jwt.Builder |
picture(java.net.URI picture) |
Profile picture URI of the subject.
|
Jwt.Builder |
preferredUsername(java.lang.String preferredUsername) |
Preferred username of the subject.
|
Jwt.Builder |
profile(java.net.URI profile) |
Profile URI of the subject.
|
Jwt.Builder |
removePayloadClaim(java.lang.String name) |
Remove a payload claim by its name.
|
Jwt.Builder |
scopes(java.util.List<java.lang.String> scopes) |
OAuth2 scope claims to set.
|
Jwt.Builder |
subject(java.lang.String subject) |
Subject defines the principal this JWT was issued for (e.g.
|
Jwt.Builder |
timeZone(java.time.ZoneId timeZone) |
Time zone of the subject.
|
Jwt.Builder |
type(java.lang.String type) |
Type of this JWT.
|
Jwt.Builder |
updatedAt(java.time.Instant updatedAt) |
Last time the subject's record was updated.
|
Jwt.Builder |
website(java.net.URI website) |
Website URI of the subject.
|
public Jwt.Builder keyId(java.lang.String keyId)
keyId - key id (pointing to a JWK)public Jwt.Builder type(java.lang.String type)
type - type definition (JWT, JWE)public Jwt.Builder scopes(java.util.List<java.lang.String> scopes)
scopes - scope claims to add to a JWTpublic Jwt.Builder addScope(java.lang.String scope)
scope - scope claim to add to a JWTpublic Jwt.Builder contentType(java.lang.String contentType)
contentType - content type to use, use "JWT" if nestedpublic Jwt.Builder addHeaderClaim(java.lang.String claim, java.lang.Object value)
claim - claim to addvalue - value of the header claimpublic Jwt.Builder addPayloadClaim(java.lang.String claim, java.lang.Object value)
claim - claim to addvalue - value of the payload claimpublic Jwt.Builder algorithm(java.lang.String algorithm)
algorithm - algorithm to use, Jwk.ALG_NONE for nonepublic Jwt.Builder issuer(java.lang.String issuer)
issuer - issuer name or URLpublic Jwt.Builder expirationTime(java.time.Instant expirationTime)
expirationTime - when this JWT expirespublic Jwt.Builder issueTime(java.time.Instant issueTime)
issueTime - when this JWT was createdpublic Jwt.Builder notBefore(java.time.Instant notBefore)
notBefore - JWT is not valid before this timepublic Jwt.Builder subject(java.lang.String subject)
subject - subject of this JWtpublic Jwt.Builder audience(java.lang.String audience)
audience - audience of this JWTpublic Jwt.Builder jwtId(java.lang.String jwtId)
jwtId - unique identifierpublic Jwt.Builder email(java.lang.String email)
email - email claim for this JWT's subjectpublic Jwt.Builder emailVerified(java.lang.Boolean emailVerified)
emailVerified - true if verifiedpublic Jwt.Builder fullName(java.lang.String fullName)
fullName - full name of the subjectpublic Jwt.Builder givenName(java.lang.String givenName)
givenName - given name of the subjectpublic Jwt.Builder middleName(java.lang.String middleName)
middleName - middle name of the subjectpublic Jwt.Builder familyName(java.lang.String familyName)
familyName - family name of the subjectpublic Jwt.Builder locale(java.util.Locale locale)
locale - locale to usepublic Jwt.Builder nickname(java.lang.String nickname)
nickname - nicknamepublic Jwt.Builder preferredUsername(java.lang.String preferredUsername)
preferredUsername - username to viewpublic Jwt.Builder profile(java.net.URI profile)
profile - link to profile of subjectpublic Jwt.Builder picture(java.net.URI picture)
picture - link to picture of subjectpublic Jwt.Builder website(java.net.URI website)
website - link to website of subjectpublic Jwt.Builder gender(java.lang.String gender)
gender - gender to usepublic Jwt.Builder birthday(java.time.LocalDate birthday)
birthday - birthdaypublic Jwt.Builder timeZone(java.time.ZoneId timeZone)
timeZone - time zonepublic Jwt.Builder phoneNumber(java.lang.String phoneNumber)
phoneNumber - phone numberpublic Jwt.Builder phoneNumberVerified(java.lang.Boolean phoneNumberVerified)
phoneNumberVerified - true if number is verifiedpublic Jwt.Builder updatedAt(java.time.Instant updatedAt)
updatedAt - instant of updatepublic Jwt.Builder address(JwtUtil.Address address)
address - address to usepublic Jwt.Builder atHash(byte[] atHash)
atHash - hash to use (explicit). If not defined, it will be computed if needed.public Jwt.Builder cHash(byte[] cHash)
cHash - hash bytes (explicit). If not defined, it will be computed if needed.public Jwt.Builder nonce(java.lang.String nonce)
nonce - nonce valuepublic Jwt.Builder removePayloadClaim(java.lang.String name)
name - name of the claim to removeCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.