public class TokenOperationsClient
extends MindsphereAPIClient
Modifier and Type | Class and Description |
---|---|
static class |
TokenOperationsClient.ClientBuilder |
Constructor and Description |
---|
TokenOperationsClient(TokenOperationsClient.ClientBuilder builder) |
Modifier and Type | Method and Description |
---|---|
static TokenOperationsClient.ClientBuilder |
builder() |
TokenKey |
oauthTokenKeyGet(String ifNoneMatch)
Returns the JWT signing key currently employed by Agent IAM
Provides current RSA public key of AgentIAM.
|
TokenKeys |
oauthTokenKeysGet()
Returns the JWT signing keys currently and previously employed by Agent IAM
Returns all valid JWT signing keys which can be used to verify JWTs (Bearer, RAT, IAT) issued by AgentIAM.
|
AccessToken |
oauthTokenPost(String grantType,
String clientAssertionType,
String clientAssertion)
Grant an Access Token
Grants an Access Token.
|
public TokenOperationsClient(TokenOperationsClient.ClientBuilder builder)
public static TokenOperationsClient.ClientBuilder builder()
public TokenKey oauthTokenKeyGet(String ifNoneMatch) throws MindsphereException
200 - OK
304 - Not Modified
500 - unexpected error
0 - Other error with any status code and response body format.
ifNoneMatch
- If-None-Match Parameter.MindsphereException
- if an error occurs while attempting to invoke the APIpublic TokenKeys oauthTokenKeysGet() throws MindsphereException
200 - OK
500 - unexpected error
0 - Other error with any status code and response body format.
MindsphereException
- if an error occurs while attempting to invoke the APIpublic AccessToken oauthTokenPost(String grantType, String clientAssertionType, String clientAssertion) throws MindsphereException
200 - OK
400 - Bad Request
500 - unexpected error
0 - Other error with any status code and response body format.
grantType
- The type of authentication being used to obtain
the token, only client_credentials is supported.clientAssertionType
- Defines the assertion type, only
urn:ietf:params:oauth:client-assertion-type:jwt-bearer
is supported.clientAssertion
- Token is signed (by the client) with keys (which
is provided at '/register' |
'/register/<client_id>' endpoint) or
client_secret (which is provided by
'/register' |
'/register/<client_id>' endpoint) in
jwt format.MindsphereException
- if an error occurs while attempting to invoke the API