Class IDToken
java.lang.Object
org.wildfly.security.http.oidc.JsonWebToken
org.wildfly.security.http.oidc.IDToken
Representation of an OIDC ID token, as per OpenID Connect Core 1.0.
- Author:
- Farah Juma
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class JsonWebToken
EMAIL, EXP, FAMILY_NAME, GIVEN_NAME, IAT, MIDDLE_NAME, NAME, NBF, NICKNAME, PREFERRED_USERNAME, SUB -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the access token hash claim.getAcr()Get the acr claim.Get the address claim.Get the birth date claim.Get the claims locales.Get the code hash claim.Get the email verified claim.Get the gender claim.Get the locale claim.getNonce()Get the phone number claim.Get the phone number verified claim.Get the picture claim.Get the profile claim.getSid()Get the sid claim.Get the state hash claim.Get the updated at claim.Get the website claim.Get the zone info claim.Methods inherited from class JsonWebToken
getAudience, getClaimNames, getClaimValue, getClaimValue, getClaimValueAsString, getEmail, getExpiration, getFamilyName, getGivenName, getID, getIssuedAt, getIssuer, getMiddleName, getName, getNickName, getNotBefore, getPreferredUsername, getPrincipalName, getStringListClaimValue, getSubject, hasClaim, isActive, isExpired, isNotBefore, replaceMap, wrapValue
-
Field Details
-
AT_HASH
- See Also:
-
C_HASH
- See Also:
-
PROFILE
- See Also:
-
PICTURE
- See Also:
-
WEBSITE
- See Also:
-
EMAIL_VERIFIED
- See Also:
-
GENDER
- See Also:
-
BIRTHDATE
- See Also:
-
ZONEINFO
- See Also:
-
LOCALE
- See Also:
-
PHONE_NUMBER
- See Also:
-
PHONE_NUMBER_VERIFIED
- See Also:
-
ADDRESS
- See Also:
-
UPDATED_AT
- See Also:
-
CLAIMS_LOCALES
- See Also:
-
ACR
- See Also:
-
S_HASH
- See Also:
-
SID
- See Also:
-
NONCE
- See Also:
-
-
Constructor Details
-
IDToken
public IDToken(org.jose4j.jwt.JwtClaims jwtClaims) Construct a new instance.- Parameters:
jwtClaims- the JWT claims for this instance (may not benull)
-
-
Method Details
-
getProfile
-
getPicture
-
getWebsite
-
getEmailVerified
-
getGender
-
getBirthdate
-
getZoneinfo
-
getLocale
-
getPhoneNumber
-
getPhoneNumberVerified
Get the phone number verified claim.- Returns:
- the phone number verified claim
-
getAddress
Get the address claim.- Returns:
- the address claim
- Throws:
IllegalArgumentException- if the address claim is malformed
-
getUpdatedAt
-
getClaimsLocales
-
getAccessTokenHash
Get the access token hash claim.- Returns:
- the access token hash claim
-
getCodeHash
-
getStateHash
-
getAcr
-
getSid
-
getNonce
-