Class AccessToken

java.lang.Object
org.wildfly.security.http.oidc.JsonWebToken
org.wildfly.security.http.oidc.AccessToken

public class AccessToken extends JsonWebToken
Representation of an access token.
Author:
Farah Juma
  • Constructor Details

    • AccessToken

      public AccessToken(org.jose4j.jwt.JwtClaims jwtClaims)
      Construct a new instance.
      Parameters:
      jwtClaims - the JWT claims for this instance (may not be null)
  • Method Details

    • getAllowedOrigins

      public List<String> getAllowedOrigins()
      Get the allowed-origins claim.
      Returns:
      the allowed-origins claim
    • getRealmAccessClaim

      public RealmAccessClaim getRealmAccessClaim()
      Get the realm_access claim.
      Returns:
      the realm_access claim
      Throws:
      IllegalArgumentException - if the realm_access claim is malformed
    • getResourceAccessClaim

      public Map<String,RealmAccessClaim> getResourceAccessClaim()
      Get the resource_access claim.
      Returns:
      the resource_access claim
      Throws:
      IllegalArgumentException - if the resource_access claim is malformed
    • getResourceAccessClaim

      public RealmAccessClaim getResourceAccessClaim(String resource)
      Get the resource_access claim.
      Parameters:
      resource - the resource
      Returns:
      the resource_access claim
      Throws:
      IllegalArgumentException - if the resource_access claim is malformed
    • getTrustedCertsClaim

      public List<String> getTrustedCertsClaim()
      Get the trusted-certs claim.
      Returns:
      the trusted-certs claim
    • getRolesClaim

      public List<String> getRolesClaim()
      Get the roles claim.
      Returns:
      the roles claim