Package org.keycloak.representations
Class IDToken
- java.lang.Object
-
- org.keycloak.representations.JsonWebToken
-
- org.keycloak.representations.IDToken
-
- All Implemented Interfaces:
Serializable
,Token
- Direct Known Subclasses:
AccessToken
public class IDToken extends JsonWebToken
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
- See Also:
- Serialized Form
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description IDToken()
-
Method Summary
-
Methods inherited from class org.keycloak.representations.JsonWebToken
addAudience, audience, exp, expiration, getAudience, getExp, getExpiration, getIat, getId, getIssuedAt, getIssuedFor, getIssuer, getNbf, getNotBefore, getOtherClaims, getSubject, getType, hasAnyAudience, hasAudience, iat, id, isActive, isActive, isExpired, isIssuedBeforeSessionStart, isNotBefore, issuedAt, issuedFor, issuedNow, issuer, nbf, notBefore, setOtherClaims, setSubject, subject, type
-
-
-
-
Field Detail
-
NONCE
public static final String NONCE
- See Also:
- Constant Field Values
-
AUTH_TIME
public static final String AUTH_TIME
- See Also:
- Constant Field Values
-
SESSION_STATE
public static final String SESSION_STATE
- See Also:
- Constant Field Values
-
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
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
GIVEN_NAME
public static final String GIVEN_NAME
- See Also:
- Constant Field Values
-
FAMILY_NAME
public static final String FAMILY_NAME
- See Also:
- Constant Field Values
-
MIDDLE_NAME
public static final String MIDDLE_NAME
- See Also:
- Constant Field Values
-
NICKNAME
public static final String NICKNAME
- See Also:
- Constant Field Values
-
PREFERRED_USERNAME
public static final String PREFERRED_USERNAME
- 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
public static final String EMAIL
- 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
-
SESSION_ID
public static final String SESSION_ID
- See Also:
- Constant Field Values
-
S_HASH
public static final String S_HASH
- See Also:
- Constant Field Values
-
nonce
protected String nonce
-
auth_time
protected Long auth_time
-
sessionState
protected String sessionState
-
accessTokenHash
protected String accessTokenHash
-
codeHash
protected String codeHash
-
name
protected String name
-
givenName
protected String givenName
-
familyName
protected String familyName
-
middleName
protected String middleName
-
nickName
protected String nickName
-
preferredUsername
protected String preferredUsername
-
profile
protected String profile
-
picture
protected String picture
-
website
protected String website
-
email
protected String email
-
emailVerified
protected Boolean emailVerified
-
gender
protected String gender
-
birthdate
protected String birthdate
-
zoneinfo
protected String zoneinfo
-
locale
protected String locale
-
phoneNumber
protected String phoneNumber
-
phoneNumberVerified
protected Boolean phoneNumberVerified
-
address
protected AddressClaimSet address
-
updatedAt
protected Long updatedAt
-
claimsLocales
protected String claimsLocales
-
acr
protected String acr
-
stateHash
protected String stateHash
-
-
Method Detail
-
getNonce
public String getNonce()
-
setNonce
public void setNonce(String nonce)
-
getAuth_time
public Long getAuth_time()
-
getAuthTime
@Deprecated public int getAuthTime()
Deprecated.int will overflow with values after 2038. UsegetAuth_time()
instead.
-
setAuth_time
public void setAuth_time(Long auth_time)
-
setAuthTime
public void setAuthTime(int authTime)
Deprecated.int will overflow with values after 2038. UsesetAuth_time(Long)
()} instead.
-
getSessionId
public String getSessionId()
-
getSessionState
public String getSessionState()
-
setSessionState
public void setSessionState(String sessionState)
-
getAccessTokenHash
public String getAccessTokenHash()
-
setAccessTokenHash
public void setAccessTokenHash(String accessTokenHash)
-
getCodeHash
public String getCodeHash()
-
setCodeHash
public void setCodeHash(String codeHash)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getGivenName
public String getGivenName()
-
setGivenName
public void setGivenName(String givenName)
-
getFamilyName
public String getFamilyName()
-
setFamilyName
public void setFamilyName(String familyName)
-
getMiddleName
public String getMiddleName()
-
setMiddleName
public void setMiddleName(String middleName)
-
getNickName
public String getNickName()
-
setNickName
public void setNickName(String nickName)
-
getPreferredUsername
public String getPreferredUsername()
-
setPreferredUsername
public void setPreferredUsername(String preferredUsername)
-
getProfile
public String getProfile()
-
setProfile
public void setProfile(String profile)
-
getPicture
public String getPicture()
-
setPicture
public void setPicture(String picture)
-
getWebsite
public String getWebsite()
-
setWebsite
public void setWebsite(String website)
-
getEmail
public String getEmail()
-
setEmail
public void setEmail(String email)
-
getEmailVerified
public Boolean getEmailVerified()
-
setEmailVerified
public void setEmailVerified(Boolean emailVerified)
-
getGender
public String getGender()
-
setGender
public void setGender(String gender)
-
getBirthdate
public String getBirthdate()
-
setBirthdate
public void setBirthdate(String birthdate)
-
getZoneinfo
public String getZoneinfo()
-
setZoneinfo
public void setZoneinfo(String zoneinfo)
-
getLocale
public String getLocale()
-
setLocale
public void setLocale(String locale)
-
getPhoneNumber
public String getPhoneNumber()
-
setPhoneNumber
public void setPhoneNumber(String phoneNumber)
-
getPhoneNumberVerified
public Boolean getPhoneNumberVerified()
-
setPhoneNumberVerified
public void setPhoneNumberVerified(Boolean phoneNumberVerified)
-
getAddress
public AddressClaimSet getAddress()
-
setAddress
public void setAddress(AddressClaimSet address)
-
getUpdatedAt
public Long getUpdatedAt()
-
setUpdatedAt
public void setUpdatedAt(Long updatedAt)
-
getClaimsLocales
public String getClaimsLocales()
-
setClaimsLocales
public void setClaimsLocales(String claimsLocales)
-
getAcr
public String getAcr()
-
setAcr
public void setAcr(String acr)
-
getStateHash
public String getStateHash()
-
setStateHash
public void setStateHash(String stateHash)
-
getCategory
public TokenCategory getCategory()
- Specified by:
getCategory
in interfaceToken
- Overrides:
getCategory
in classJsonWebToken
-
-