public class TechnicalTokenService
extends Object
| Constructor and Description |
|---|
TechnicalTokenService() |
TechnicalTokenService(MindsphereCredentials credentials) |
TechnicalTokenService(RestClientConfig restClientConfig) |
| Modifier and Type | Method and Description |
|---|---|
RestClientConfig |
getClientConfiguration()
Get the RestClientConfig
|
RestTemplate |
getRestTemplate()
Get the RestTemplate
|
TechnicalToken |
getToken()
Get a TechnicalToken instance.
|
void |
setClientConfiguration(RestClientConfig restClientConfig) |
void |
setRestTemplate(RestTemplate restTemplate) |
TechnicalTokenService |
withClientConfiguration(RestClientConfig clientConfig)
Returns a TechnicalTokenService instance initialized with the RestClientConfig supplied
|
public TechnicalTokenService()
public TechnicalTokenService(MindsphereCredentials credentials)
public TechnicalTokenService(RestClientConfig restClientConfig)
public RestTemplate getRestTemplate()
public void setRestTemplate(RestTemplate restTemplate)
public RestClientConfig getClientConfiguration()
public void setClientConfiguration(RestClientConfig restClientConfig)
public 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