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 String
aud()
The oauth audience, who this token is intended for.static Claims
create(String iss, String scope, String aud, long exp, long iat)
abstract long
exp()
The expiration time, in seconds sinceiat()
.abstract long
iat()
The time at which the JWT was issued, in seconds since the epoch.abstract String
iss()
The issuer of this token.abstract String
scope()
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.
-
-