Package org.wildfly.security.http.oidc
Class IDToken
- java.lang.Object
-
- org.wildfly.security.http.oidc.JsonWebToken
-
- org.wildfly.security.http.oidc.IDToken
-
public class IDToken extends JsonWebToken
Representation of an OIDC ID token, as per OpenID Connect Core 1.0.- Author:
- Farah Juma
-
-
Field Summary
Fields Modifier and Type Field Description static StringACRstatic StringADDRESSstatic StringAT_HASHstatic StringBIRTHDATEstatic StringC_HASHstatic StringCLAIMS_LOCALESstatic StringEMAIL_VERIFIEDstatic StringGENDERstatic StringLOCALEstatic StringPHONE_NUMBERstatic StringPHONE_NUMBER_VERIFIEDstatic StringPICTUREstatic StringPROFILEstatic StringS_HASHstatic StringUPDATED_ATstatic StringWEBSITEstatic StringZONEINFO-
Fields 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 Constructor Description IDToken(org.jose4j.jwt.JwtClaims jwtClaims)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAccessTokenHash()Get the access token hash claim.StringgetAcr()Get the acr claim.AddressClaimSetgetAddress()Get the address claim.StringgetBirthdate()Get the birth date claim.StringgetClaimsLocales()Get the claims locales.StringgetCodeHash()Get the code hash claim.BooleangetEmailVerified()Get the email verified claim.StringgetGender()Get the gender claim.StringgetLocale()Get the locale claim.StringgetPhoneNumber()Get the phone number claim.BooleangetPhoneNumberVerified()Get the phone number verified claim.StringgetPicture()Get the picture claim.StringgetProfile()Get the profile claim.StringgetStateHash()Get the state hash claim.LonggetUpdatedAt()Get the updated at claim.StringgetWebsite()Get the website claim.StringgetZoneinfo()Get the zone info claim.-
Methods inherited from class org.wildfly.security.http.oidc.JsonWebToken
getAudience, getClaimNames, getClaimValue, getClaimValue, getClaimValueAsLong, getClaimValueAsString, getEmail, getExpiration, getFamilyName, getGivenName, getID, getIssuedAt, getIssuer, getMiddleName, getName, getNickName, getNotBefore, getPreferredUsername, getPrincipalName, getStringListClaimValue, getSubject, hasClaim, isActive, isExpired, isNotBefore, replaceMap, wrapValue
-
-
-
-
Field Detail
-
AT_HASH
public static final String AT_HASH
- See Also:
- Constant Field Values
-
C_HASH
public static final String C_HASH
- See Also:
- Constant Field Values
-
PROFILE
public static final String PROFILE
- See Also:
- Constant Field Values
-
PICTURE
public static final String PICTURE
- See Also:
- Constant Field Values
-
WEBSITE
public static final String WEBSITE
- See Also:
- Constant Field Values
-
EMAIL_VERIFIED
public static final String EMAIL_VERIFIED
- See Also:
- Constant Field Values
-
GENDER
public static final String GENDER
- See Also:
- Constant Field Values
-
BIRTHDATE
public static final String BIRTHDATE
- See Also:
- Constant Field Values
-
ZONEINFO
public static final String ZONEINFO
- See Also:
- Constant Field Values
-
LOCALE
public static final String LOCALE
- See Also:
- Constant Field Values
-
PHONE_NUMBER
public static final String PHONE_NUMBER
- See Also:
- Constant Field Values
-
PHONE_NUMBER_VERIFIED
public static final String PHONE_NUMBER_VERIFIED
- See Also:
- Constant Field Values
-
ADDRESS
public static final String ADDRESS
- See Also:
- Constant Field Values
-
UPDATED_AT
public static final String UPDATED_AT
- See Also:
- Constant Field Values
-
CLAIMS_LOCALES
public static final String CLAIMS_LOCALES
- See Also:
- Constant Field Values
-
ACR
public static final String ACR
- See Also:
- Constant Field Values
-
S_HASH
public static final String S_HASH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getProfile
public String getProfile()
Get the profile claim.- Returns:
- the profile claim
-
getPicture
public String getPicture()
Get the picture claim.- Returns:
- the picture claim
-
getWebsite
public String getWebsite()
Get the website claim.- Returns:
- the website claim
-
getEmailVerified
public Boolean getEmailVerified()
Get the email verified claim.- Returns:
- the email verified claim
-
getGender
public String getGender()
Get the gender claim.- Returns:
- the gender claim
-
getBirthdate
public String getBirthdate()
Get the birth date claim.- Returns:
- the birthdate claim
-
getZoneinfo
public String getZoneinfo()
Get the zone info claim.- Returns:
- the zone info claim
-
getLocale
public String getLocale()
Get the locale claim.- Returns:
- the locale claim
-
getPhoneNumber
public String getPhoneNumber()
Get the phone number claim.- Returns:
- the phone number claim
-
getPhoneNumberVerified
public Boolean getPhoneNumberVerified()
Get the phone number verified claim.- Returns:
- the phone number verified claim
-
getAddress
public AddressClaimSet getAddress()
Get the address claim.- Returns:
- the address claim
- Throws:
IllegalArgumentException- if the address claim is malformed
-
getUpdatedAt
public Long getUpdatedAt()
Get the updated at claim.- Returns:
- the updated at claim
-
getClaimsLocales
public String getClaimsLocales()
Get the claims locales.- Returns:
- the cliams locales
-
getAccessTokenHash
public String getAccessTokenHash()
Get the access token hash claim.- Returns:
- the access token hash claim
-
getCodeHash
public String getCodeHash()
Get the code hash claim.- Returns:
- the code hash claim
-
getStateHash
public String getStateHash()
Get the state hash claim.- Returns:
- the state hash claim
-
getAcr
public String getAcr()
Get the acr claim.- Returns:
- the acr claim
-
-