Package org.wildfly.security.http.oidc
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 StringFields inherited from class org.wildfly.security.http.oidc.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.Get the state hash claim.Get the updated at claim.Get the website claim.Get the zone info claim.Methods inherited from class org.wildfly.security.http.oidc.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:
-
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
Get the profile claim.- Returns:
- the profile claim
-
getPicture
Get the picture claim.- Returns:
- the picture claim
-
getWebsite
Get the website claim.- Returns:
- the website claim
-
getEmailVerified
Get the email verified claim.- Returns:
- the email verified claim
-
getGender
Get the gender claim.- Returns:
- the gender claim
-
getBirthdate
Get the birth date claim.- Returns:
- the birthdate claim
-
getZoneinfo
Get the zone info claim.- Returns:
- the zone info claim
-
getLocale
Get the locale claim.- Returns:
- the locale claim
-
getPhoneNumber
Get the phone number claim.- Returns:
- the phone number claim
-
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
Get the updated at claim.- Returns:
- the updated at claim
-
getClaimsLocales
Get the claims locales.- Returns:
- the cliams locales
-
getAccessTokenHash
Get the access token hash claim.- Returns:
- the access token hash claim
-
getCodeHash
Get the code hash claim.- Returns:
- the code hash claim
-
getStateHash
Get the state hash claim.- Returns:
- the state hash claim
-
getAcr
Get the acr claim.- Returns:
- the acr claim
-
getNonce
-