public class TokenMetadataRepresentation extends AccessToken
AccessToken.Access
allowedOrigins, clientSession, realmAccess, resourceAccess, 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 |
---|
TokenMetadataRepresentation() |
Modifier and Type | Method and Description |
---|---|
String |
getClientId() |
String |
getUserName() |
boolean |
isActive()
Tests that the token is not expired and is not-before.
|
void |
setActive(boolean active) |
void |
setClientId(String clientId) |
void |
setUserName(String userName) |
addAccess, clientSession, expiration, getAllowedOrigins, getClientSession, getRealmAccess, getResourceAccess, getResourceAccess, getTrustedCertificates, id, issuedAt, issuedFor, issuer, isVerifyCaller, isVerifyCaller, notBefore, setAllowedOrigins, setRealmAccess, setResourceAccess, setTrustedCertificates, subject, type
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, isExpired, isNotBefore, issuedNow, setOtherClaims, setSubject
public boolean isActive()
JsonWebToken
isActive
in class JsonWebToken
public void setActive(boolean active)
public String getUserName()
public void setUserName(String userName)
public String getClientId()
public void setClientId(String clientId)
Copyright © 2016 JBoss by Red Hat. All rights reserved.