public class CustomCredentials extends Object
Credentials implementation. This implementation should be used as the most simple way to access to a RedLink On-Premise platform
The local endpoint is fixed and can be changed by constructor. API key is not necessary. Customizations of this class can be done by extending it| Modifier and Type | Field and Description |
|---|---|
static String |
CUSTOM_DATAHUB |
static String |
CUSTOM_ENDPOINT |
| Constructor and Description |
|---|
CustomCredentials() |
CustomCredentials(String endpoint) |
| Modifier and Type | Method and Description |
|---|---|
URI |
buildUrl(UriBuilder builder)
URI Builder for RedLink.
|
String |
getApiKey()
Get the API Key
|
String |
getDataHub()
Get the base URI of the data hub
|
String |
getEndpoint()
Get the API endpoint
|
Status |
getStatus()
Forces the update of the cached status
|
String |
getVersion()
Get the API version
|
boolean |
verify()
Verify the current (cached) credentials are valid
|
public static final String CUSTOM_ENDPOINT
public static final String CUSTOM_DATAHUB
public CustomCredentials()
public CustomCredentials(String endpoint)
public URI buildUrl(UriBuilder builder) throws MalformedURLException, IllegalArgumentException, URISyntaxException
Credentialsbuilder - base uri builderURIMalformedURLExceptionIllegalArgumentExceptionURISyntaxExceptionpublic String getEndpoint()
CredentialsgetEndpoint in interface Credentialspublic String getVersion()
CredentialsgetVersion in interface Credentialspublic String getApiKey()
CredentialsgetApiKey in interface Credentialspublic String getDataHub()
CredentialsgetDataHub in interface Credentialspublic boolean verify()
throws MalformedURLException
Credentialsverify in interface CredentialsMalformedURLExceptionpublic Status getStatus()
CredentialsgetStatus in interface CredentialsCopyright © 2018 Redlink GmbH. All rights reserved.