public class RegistrationClient extends MindsphereAPIClient
Modifier and Type | Class and Description |
---|---|
static class |
RegistrationClient.ClientBuilder |
MindsphereAPIClient.Builder<T extends MindsphereAPIClient.Builder<T>>
credentials, restClientConfig, restTemplate
Constructor and Description |
---|
RegistrationClient(RegistrationClient.ClientBuilder builder) |
Modifier and Type | Method and Description |
---|---|
static RegistrationClient.ClientBuilder |
builder() |
ClientIdentifier |
onBoardAgent(String initialAccessToken,
Object keys)
Registers client based on given security profile.
|
ClientIdentifier |
onBoardAgentWithRSAProfile(String initialAccessToken,
Keys rsaPublicKey)
Registers client with RSA security profile.
|
ClientIdentifier |
onBoardAgentWithSharedSecretProfile(String initialAccessToken)
Registers client with SHARED_SECRET security profile.
|
ClientIdentifier |
rotateKeysForRSA(String registrationAccessToken,
String clientId,
RotationKeys keys)
Updates clients information.
|
ClientIdentifier |
rotateKeysForSharedSecret(String registrationAccessToken,
String clientId)
Update client information.
|
public RegistrationClient(RegistrationClient.ClientBuilder builder)
public static RegistrationClient.ClientBuilder builder()
public ClientIdentifier rotateKeysForRSA(String registrationAccessToken, String clientId, RotationKeys keys) throws MindsphereException
200 - OK
400 - Bad Request
401 - Unauthorized
registrationAccessToken
- Registration Access Token value with Bearer
authentication scheme. e.g :Bearer eyJh...clientId
- Client identifier to update information.keys
- The client's key in JWKS for security
profile RSA. If security profile is
SHARED_SECRET there is only client_id in the
JSON.MindsphereException
- if an error occurs while attempting to invoke the
APIpublic ClientIdentifier rotateKeysForSharedSecret(String registrationAccessToken, String clientId) throws MindsphereException
200 - OK
400 - Bad Request
401 - Unauthorized
registrationAccessToken
- Registration Access Token value with Bearer
authentication scheme. e.g :Bearer eyJh...clientId
- Client identifier to update information.MindsphereException
- if an error occurs while attempting to invoke the
APIpublic ClientIdentifier onBoardAgent(String initialAccessToken, Object keys) throws MindsphereException
201 - Created
400 - Bad Request
401 - Unauthorized
initialAccessToken
- Initial Access Token value with Bearer
authentication scheme. e.g :Bearer eyJh...keys
- The client's key in JWKS for security
profile RSA. If security profile is
SHARED_SECRET the value is empty JSON.MindsphereException
- if an error occurs while attempting to invoke the
APIpublic ClientIdentifier onBoardAgentWithSharedSecretProfile(String initialAccessToken) throws MindsphereException
201 - Created
400 - Bad Request
401 - Unauthorized
initialAccessToken
- Initial Access Token value with Bearer
authentication scheme. e.g :Bearer eyJh...MindsphereException
- if an error occurs while attempting to invoke the
APIpublic ClientIdentifier onBoardAgentWithRSAProfile(String initialAccessToken, Keys rsaPublicKey) throws MindsphereException
201 - Created
400 - Bad Request
401 - Unauthorized
initialAccessToken
- Initial Access Token value with Bearer
authentication scheme. e.g :Bearer eyJh...rsaPublicKey
- The client's key in JWKS for security
profile RSA. If security profile is
SHARED_SECRET the value is empty JSON.MindsphereException
- if an error occurs while attempting to invoke the
API