Package org.jclouds.oauth.v2.domain
Class ClientCredentialsClaims
- java.lang.Object
-
- org.jclouds.oauth.v2.domain.ClientCredentialsClaims
-
public abstract class ClientCredentialsClaims extends Object
Claims corresponding to a JWT Token for use when making a client_credentials grant request.- 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 ClientCredentialsClaims
create(String iss, String sub, String aud, long exp, long nbf, String jti)
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 Detail
-
iss
public abstract String 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
public abstract String sub()
The subject of the JWT. For Azure, "sub" is typically equal to "iss".
-
aud
public abstract String 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
public abstract String jti()
"JWT ID", a unique identifier for the JWT.
-
create
public static ClientCredentialsClaims create(String iss, String sub, String aud, long exp, long nbf, String jti)
-
-