Package org.jclouds.oauth.v2.domain
Class Claims
java.lang.Object
org.jclouds.oauth.v2.domain.Claims
Claims corresponding to a JWT Token.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
aud()
The oauth audience, who this token is intended for.static Claims
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 Details
-
iss
The issuer of this token. In google, the service account email. -
scope
A comma-separated list of scopes needed to perform the request. -
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. -
create
-