public class AccessToken extends IDToken
Modifier and Type | Class and Description |
---|---|
static class |
AccessToken.Access |
static class |
AccessToken.Authorization |
static class |
AccessToken.CertConf |
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
allowedOrigins |
protected AccessToken.Authorization |
authorization |
protected AccessToken.CertConf |
certConf |
protected AccessToken.Access |
realmAccess |
protected Map<String,AccessToken.Access> |
resourceAccess |
protected String |
scope |
protected Set<String> |
trustedCertificates |
accessTokenHash, acr, ACR, address, ADDRESS, AT_HASH, AUTH_TIME, authTime, 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_STATE, sessionState, stateHash, UPDATED_AT, updatedAt, website, WEBSITE, zoneinfo, ZONEINFO
audience, expiration, id, issuedAt, issuedFor, issuer, notBefore, otherClaims, subject, type
Constructor and Description |
---|
AccessToken() |
getAccessTokenHash, getAcr, getAddress, getAuthTime, getBirthdate, getClaimsLocales, getCodeHash, getEmail, getEmailVerified, getFamilyName, getGender, getGivenName, getLocale, getMiddleName, getName, getNickName, getNonce, getPhoneNumber, getPhoneNumberVerified, getPicture, getPreferredUsername, getProfile, getSessionState, getStateHash, getUpdatedAt, getWebsite, getZoneinfo, setAccessTokenHash, setAcr, setAddress, setAuthTime, setBirthdate, setClaimsLocales, setCodeHash, setEmail, setEmailVerified, setFamilyName, setGender, setGivenName, setLocale, setMiddleName, setName, setNickName, setNonce, setPhoneNumber, setPhoneNumberVerified, setPicture, setPreferredUsername, setProfile, setSessionState, setStateHash, setUpdatedAt, setWebsite, setZoneinfo
addAudience, audience, getAudience, getExpiration, getId, getIssuedAt, getIssuedFor, getIssuer, getNotBefore, getOtherClaims, getSubject, getType, hasAudience, isActive, isActive, isExpired, isNotBefore, issuedNow, setOtherClaims, setSubject
protected AccessToken.Access realmAccess
protected Map<String,AccessToken.Access> resourceAccess
protected AccessToken.Authorization authorization
protected AccessToken.CertConf certConf
protected String scope
public Map<String,AccessToken.Access> getResourceAccess()
public void setResourceAccess(Map<String,AccessToken.Access> resourceAccess)
public boolean isVerifyCaller()
public boolean isVerifyCaller(String resource)
resource
- public AccessToken.Access getResourceAccess(String resource)
public AccessToken.Access addAccess(String service)
public AccessToken id(String id)
id
in class JsonWebToken
public AccessToken expiration(int expiration)
expiration
in class JsonWebToken
public AccessToken notBefore(int notBefore)
notBefore
in class JsonWebToken
public AccessToken issuedAt(int issuedAt)
issuedAt
in class JsonWebToken
public AccessToken issuer(String issuer)
issuer
in class JsonWebToken
public AccessToken subject(String subject)
subject
in class JsonWebToken
public AccessToken type(String type)
type
in class JsonWebToken
public AccessToken.Access getRealmAccess()
public void setRealmAccess(AccessToken.Access realmAccess)
public AccessToken issuedFor(String issuedFor)
issuedFor
in class JsonWebToken
public AccessToken.Authorization getAuthorization()
public void setAuthorization(AccessToken.Authorization authorization)
public AccessToken.CertConf getCertConf()
public void setCertConf(AccessToken.CertConf certConf)
public String getScope()
public void setScope(String scope)
public TokenCategory getCategory()
getCategory
in interface Token
getCategory
in class IDToken
Copyright © 2019 JBoss by Red Hat. All rights reserved.