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 |
|---|---|
javax.ws.rs.client.WebTarget |
buildUrl(javax.ws.rs.core.UriBuilder builder)
JAX-RS Endpoint 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 javax.ws.rs.client.WebTarget buildUrl(javax.ws.rs.core.UriBuilder builder)
throws MalformedURLException,
IllegalArgumentException,
javax.ws.rs.core.UriBuilderException
Credentialsbuilder - base uri builderWebTargetMalformedURLExceptionIllegalArgumentExceptionjavax.ws.rs.core.UriBuilderExceptionpublic 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() throws MalformedURLException
CredentialsgetStatus in interface CredentialsMalformedURLExceptionCopyright © 2014 Redlink GmbH. All rights reserved.