public class TechnicalTokenService
extends Object
| Constructor and Description |
|---|
TechnicalTokenService()
Constructs a new empty TechnicalTokenService instance.
|
TechnicalTokenService(MindsphereCredentials credentials)
Constructs a new TechnicalTokenService instance initialized with credentials
|
TechnicalTokenService(RestClientConfig restClientConfig)
Constructs a new TechnicalTokenService instance initialized with
restClientConfig
|
| Modifier and Type | Method and Description |
|---|---|
RestClientConfig |
getClientConfiguration()
Get the RestClientConfig instance
|
RestTemplate |
getRestTemplate()
Get the RestTemplate instance
|
TechnicalToken |
getToken()
Get a TechnicalToken instance.
|
void |
setClientConfiguration(RestClientConfig restClientConfig)
Sets the RestClientConfig instance
|
void |
setRestTemplate(RestTemplate restTemplate)
Sets the RestTemplate instance
|
TechnicalTokenService |
withClientConfiguration(RestClientConfig clientConfig)
Returns a TechnicalTokenService instance initialized with the
RestClientConfig supplied
|
public TechnicalTokenService()
public TechnicalTokenService(MindsphereCredentials credentials)
credentials - MindsphereCredentials instancepublic TechnicalTokenService(RestClientConfig restClientConfig)
restClientConfig - RestClientConfig instancepublic RestTemplate getRestTemplate()
public void setRestTemplate(RestTemplate restTemplate)
restTemplate - RestTemplatepublic RestClientConfig getClientConfiguration()
public void setClientConfiguration(RestClientConfig restClientConfig)
restClientConfig - RestClientConfig instancepublic TechnicalTokenService withClientConfiguration(RestClientConfig clientConfig)
clientConfig - HTTP Client config object used by the user to set the
configpublic TechnicalToken getToken() throws MindsphereException
MindsphereException - thrown when credentials are missing or incorrect
or invalid