Package org.jclouds.oauth.v2.domain
Class ClientCredentialsClaims
java.lang.Object
org.jclouds.oauth.v2.domain.ClientCredentialsClaims
Claims corresponding to a JWT Token for use when making a client_credentials grant request.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
aud()
The oauth audience, who this token is intended for.static ClientCredentialsClaims
abstract long
exp()
The expiration time, in seconds since the epoch after which the JWT must not be accepted for processing.abstract String
iss()
The issuer of this token.abstract String
jti()
"JWT ID", a unique identifier for the JWT.abstract long
nbf()
The time before which the JWT must not be accepted for processing, in seconds since the epoch.abstract String
sub()
The subject of the JWT.
-
Method Details
-
iss
The issuer of this token. In Azure, it is either the email address for the Active Directory account or the ID of the application set up as a Service Principal. -
sub
The subject of the JWT. For Azure, "sub" is typically equal to "iss". -
aud
The oauth audience, who this token is intended for. For instance in JWT and for Azure Resource Manager APIs, this maps to https://login.microsoftonline.com/TENANT_ID/oauth2/token. -
exp
public abstract long exp()The expiration time, in seconds since the epoch after which the JWT must not be accepted for processing. -
nbf
public abstract long nbf()The time before which the JWT must not be accepted for processing, in seconds since the epoch. -
jti
"JWT ID", a unique identifier for the JWT. -
create
-