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
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected AccessToken.Authorization
protected AccessToken.CertConf
protected AccessToken.Access
protected Map<String,
AccessToken.Access> protected String
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionexpiration
(int expiration) getResourceAccess
(String resource) getScope()
issuedAt
(int issuedAt) boolean
Does the realm require verifying the caller?boolean
isVerifyCaller
(String resource) Does the resource override the requirement of verifying the caller?notBefore
(int notBefore) void
setAllowedOrigins
(Set<String> allowedOrigins) void
setAuthorization
(AccessToken.Authorization authorization) void
setCertConf
(AccessToken.CertConf certConf) void
setRealmAccess
(AccessToken.Access realmAccess) void
setResourceAccess
(Map<String, AccessToken.Access> resourceAccess) void
void
setTrustedCertificates
(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, setZoneinfo
Methods 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:
id
in classJsonWebToken
-
expiration
- Overrides:
expiration
in classJsonWebToken
-
notBefore
- Overrides:
notBefore
in classJsonWebToken
-
issuedAt
- Overrides:
issuedAt
in classJsonWebToken
-
issuer
- Overrides:
issuer
in classJsonWebToken
-
subject
- Overrides:
subject
in classJsonWebToken
-
type
- Overrides:
type
in classJsonWebToken
-
getAllowedOrigins
-
setAllowedOrigins
-
getRealmAccess
-
setRealmAccess
-
getTrustedCertificates
-
setTrustedCertificates
-
issuedFor
- Overrides:
issuedFor
in classJsonWebToken
-
getAuthorization
-
setAuthorization
-
getCertConf
-
setCertConf
-
getScope
-
setScope
-
getCategory
- Specified by:
getCategory
in interfaceToken
- Overrides:
getCategory
in classIDToken
-