Package org.jclouds.oauth.v2.domain
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:
- registered list
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Stringaud()The oauth audience, who this token is intended for.static Claimscreate(String iss, String scope, String aud, long exp, long iat)abstract longexp()The expiration time, in seconds sinceiat().abstract longiat()The time at which the JWT was issued, in seconds since the epoch.abstract Stringiss()The issuer of this token.abstract Stringscope()A comma-separated list of scopes needed to perform the request.
-
-
-
Method Detail
-
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 sinceiat().
-
iat
public abstract long iat()
The time at which the JWT was issued, in seconds since the epoch.
-
-