public class AccessToken extends IDToken
Modifier and Type | Class and Description |
---|---|
static class |
AccessToken.Access |
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
allowedOrigins |
protected String |
clientSession |
protected AccessToken.Access |
realmAccess |
protected Map<String,AccessToken.Access> |
resourceAccess |
protected Set<String> |
trustedCertificates |
address, ADDRESS, birthdate, BIRTHDATE, CLAIMS_LOCALES, claimsLocales, 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, SESSION_STATE, sessionState, UPDATED_AT, updatedAt, website, WEBSITE, zoneinfo, ZONEINFO
audience, expiration, id, issuedAt, issuedFor, issuer, notBefore, otherClaims, subject, type
Constructor and Description |
---|
AccessToken() |
getAddress, getBirthdate, getClaimsLocales, getEmail, getEmailVerified, getFamilyName, getGender, getGivenName, getLocale, getMiddleName, getName, getNickName, getNonce, getPhoneNumber, getPhoneNumberVerified, getPicture, getPreferredUsername, getProfile, getSessionState, getUpdatedAt, getWebsite, getZoneinfo, setAddress, setBirthdate, setClaimsLocales, setEmail, setEmailVerified, setFamilyName, setGender, setGivenName, setLocale, setMiddleName, setName, setNickName, setNonce, setPhoneNumber, setPhoneNumberVerified, setPicture, setPreferredUsername, setProfile, setSessionState, setUpdatedAt, setWebsite, setZoneinfo
audience, getAudience, getExpiration, getId, getIssuedAt, getIssuedFor, getIssuer, getNotBefore, getOtherClaims, getSubject, getType, hasAudience, isActive, isExpired, isNotBefore, issuedNow, setOtherClaims, setSubject
protected String clientSession
protected AccessToken.Access realmAccess
protected Map<String,AccessToken.Access> resourceAccess
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 String getClientSession()
public AccessToken.Access addAccess(String service)
public AccessToken clientSession(String session)
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
Copyright © 2016 JBoss by Red Hat. All rights reserved.