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 String
ACR
static String
ADDRESS
static String
AT_HASH
static String
BIRTHDATE
static String
C_HASH
static String
CLAIMS_LOCALES
static String
EMAIL_VERIFIED
static String
GENDER
static String
LOCALE
static String
PHONE_NUMBER
static String
PHONE_NUMBER_VERIFIED
static String
PICTURE
static String
PROFILE
static String
S_HASH
static String
UPDATED_AT
static String
WEBSITE
static String
ZONEINFO
-
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 String
getAccessTokenHash()
Get the access token hash claim.String
getAcr()
Get the acr claim.AddressClaimSet
getAddress()
Get the address claim.String
getBirthdate()
Get the birth date claim.String
getClaimsLocales()
Get the claims locales.String
getCodeHash()
Get the code hash claim.Boolean
getEmailVerified()
Get the email verified claim.String
getGender()
Get the gender claim.String
getLocale()
Get the locale claim.String
getPhoneNumber()
Get the phone number claim.Boolean
getPhoneNumberVerified()
Get the phone number verified claim.String
getPicture()
Get the picture claim.String
getProfile()
Get the profile claim.String
getStateHash()
Get the state hash claim.Long
getUpdatedAt()
Get the updated at claim.String
getWebsite()
Get the website claim.String
getZoneinfo()
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
-
-