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 Stringaud()The oauth audience, who this token is intended for.static ClientCredentialsClaimsabstract longexp()The expiration time, in seconds since the epoch after which the JWT must not be accepted for processing.abstract Stringiss()The issuer of this token.abstract Stringjti()"JWT ID", a unique identifier for the JWT.abstract longnbf()The time before which the JWT must not be accepted for processing, in seconds since the epoch.abstract Stringsub()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
-