Class Claims

java.lang.Object
org.jclouds.oauth.v2.domain.Claims

public abstract class Claims extends Object
Claims corresponding to a JWT Token.
See Also:
  • Method Details

    • iss

      public abstract String iss()
      The issuer of this token. In google, the service account email.
    • scope

      public abstract String scope()
      A comma-separated list of scopes needed to perform the request.
    • aud

      public abstract String aud()
      The oauth audience, who this token is intended for. For instance in JWT and for google API's, this maps to: https://accounts.google.com/o/oauth2/token
    • exp

      public abstract long exp()
      The expiration time, in seconds since iat().
    • iat

      public abstract long iat()
      The time at which the JWT was issued, in seconds since the epoch.
    • create

      public static Claims create(String iss, String scope, String aud, long exp, long iat)