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 Details

  • Constructor Details

    • IDToken

      public IDToken(org.jose4j.jwt.JwtClaims jwtClaims)
      Construct a new instance.
      Parameters:
      jwtClaims - the JWT claims for this instance (may not be null)
  • Method Details

    • 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
    • getNonce

      public String getNonce()