Class AccessToken
java.lang.Object
org.wildfly.security.http.oidc.JsonWebToken
org.wildfly.security.http.oidc.AccessToken
-
Field Summary
Fields inherited from class JsonWebToken
EMAIL, EXP, FAMILY_NAME, GIVEN_NAME, IAT, MIDDLE_NAME, NAME, NBF, NICKNAME, PREFERRED_USERNAME, SUB -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the allowed-origins claim.Get the realm_access claim.Get the resource_access claim.getResourceAccessClaim(String resource) Get the resource_access claim.Get the roles claim.Get the trusted-certs claim.Methods inherited from class JsonWebToken
getAudience, getClaimNames, getClaimValue, getClaimValue, getClaimValueAsString, getEmail, getExpiration, getFamilyName, getGivenName, getID, getIssuedAt, getIssuer, getMiddleName, getName, getNickName, getNotBefore, getPreferredUsername, getPrincipalName, getStringListClaimValue, getSubject, hasClaim, isActive, isExpired, isNotBefore, replaceMap, wrapValue
-
Constructor Details
-
AccessToken
public AccessToken(org.jose4j.jwt.JwtClaims jwtClaims) Construct a new instance.- Parameters:
jwtClaims- the JWT claims for this instance (may not benull)
-
-
Method Details
-
getAllowedOrigins
-
getRealmAccessClaim
Get the realm_access claim.- Returns:
- the realm_access claim
- Throws:
IllegalArgumentException- if the realm_access claim is malformed
-
getResourceAccessClaim
Get the resource_access claim.- Returns:
- the resource_access claim
- Throws:
IllegalArgumentException- if the resource_access claim is malformed
-
getResourceAccessClaim
Get the resource_access claim.- Parameters:
resource- the resource- Returns:
- the resource_access claim
- Throws:
IllegalArgumentException- if the resource_access claim is malformed
-
getTrustedCertsClaim
-
getRolesClaim
-