Package org.keycloak.representations
Class AccessToken
java.lang.Object
org.keycloak.representations.JsonWebToken
org.keycloak.representations.IDToken
org.keycloak.representations.AccessToken
- All Implemented Interfaces:
Serializable,Token
- Direct Known Subclasses:
IdentityCookieToken,RefreshToken,TokenMetadataRepresentation
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessToken.Authorizationprotected AccessToken.CertConfprotected AccessToken.Accessprotected Map<String,AccessToken.Access> protected StringFields inherited from class org.keycloak.representations.IDToken
accessTokenHash, acr, ACR, address, ADDRESS, AT_HASH, auth_time, AUTH_TIME, birthdate, BIRTHDATE, C_HASH, CLAIMS_LOCALES, claimsLocales, codeHash, email, EMAIL, EMAIL_VERIFIED, emailVerified, FAMILY_NAME, familyName, gender, GENDER, GIVEN_NAME, givenName, locale, LOCALE, MIDDLE_NAME, middleName, name, NAME, nickName, NICKNAME, nonce, NONCE, PHONE_NUMBER, PHONE_NUMBER_VERIFIED, phoneNumber, phoneNumberVerified, picture, PICTURE, PREFERRED_USERNAME, preferredUsername, profile, PROFILE, S_HASH, SESSION_ID, SESSION_STATE, sessionState, stateHash, UPDATED_AT, updatedAt, website, WEBSITE, zoneinfo, ZONEINFO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexpiration(int expiration) getResourceAccess(String resource) getScope()issuedAt(int issuedAt) booleanDoes the realm require verifying the caller?booleanisVerifyCaller(String resource) Does the resource override the requirement of verifying the caller?notBefore(int notBefore) voidsetAllowedOrigins(Set<String> allowedOrigins) voidsetAuthorization(AccessToken.Authorization authorization) voidsetCertConf(AccessToken.CertConf certConf) voidsetRealmAccess(AccessToken.Access realmAccess) voidsetResourceAccess(Map<String, AccessToken.Access> resourceAccess) voidvoidsetTrustedCertificates(Set<String> trustedCertificates) Methods inherited from class org.keycloak.representations.IDToken
getAccessTokenHash, getAcr, getAddress, getAuth_time, getAuthTime, getBirthdate, getClaimsLocales, getCodeHash, getEmail, getEmailVerified, getFamilyName, getGender, getGivenName, getLocale, getMiddleName, getName, getNickName, getNonce, getPhoneNumber, getPhoneNumberVerified, getPicture, getPreferredUsername, getProfile, getSessionId, getSessionState, getStateHash, getUpdatedAt, getWebsite, getZoneinfo, setAccessTokenHash, setAcr, setAddress, setAuth_time, setAuthTime, setBirthdate, setClaimsLocales, setCodeHash, setEmail, setEmailVerified, setFamilyName, setGender, setGivenName, setLocale, setMiddleName, setName, setNickName, setNonce, setPhoneNumber, setPhoneNumberVerified, setPicture, setPreferredUsername, setProfile, setSessionState, setStateHash, setUpdatedAt, setWebsite, setZoneinfoMethods inherited from class org.keycloak.representations.JsonWebToken
addAudience, audience, exp, getAudience, getExp, getExpiration, getIat, getId, getIssuedAt, getIssuedFor, getIssuer, getNbf, getNotBefore, getOtherClaims, getSubject, getType, hasAnyAudience, hasAudience, iat, isActive, isActive, isExpired, isIssuedBeforeSessionStart, isNotBefore, issuedNow, nbf, setOtherClaims, setSubject
-
Field Details
-
trustedCertificates
-
allowedOrigins
-
realmAccess
-
resourceAccess
-
authorization
-
certConf
-
scope
-
-
Constructor Details
-
AccessToken
public AccessToken()
-
-
Method Details
-
getResourceAccess
-
setResourceAccess
-
isVerifyCaller
public boolean isVerifyCaller()Does the realm require verifying the caller?- Returns:
-
isVerifyCaller
Does the resource override the requirement of verifying the caller?- Parameters:
resource-- Returns:
-
getResourceAccess
-
addAccess
-
id
- Overrides:
idin classJsonWebToken
-
expiration
- Overrides:
expirationin classJsonWebToken
-
notBefore
- Overrides:
notBeforein classJsonWebToken
-
issuedAt
- Overrides:
issuedAtin classJsonWebToken
-
issuer
- Overrides:
issuerin classJsonWebToken
-
subject
- Overrides:
subjectin classJsonWebToken
-
type
- Overrides:
typein classJsonWebToken
-
getAllowedOrigins
-
setAllowedOrigins
-
getRealmAccess
-
setRealmAccess
-
getTrustedCertificates
-
setTrustedCertificates
-
issuedFor
- Overrides:
issuedForin classJsonWebToken
-
getAuthorization
-
setAuthorization
-
getCertConf
-
setCertConf
-
getScope
-
setScope
-
getCategory
- Specified by:
getCategoryin interfaceToken- Overrides:
getCategoryin classIDToken
-