public class HopsworksExternalClient extends Object implements HopsworksHttpClient
| Constructor and Description |
|---|
HopsworksExternalClient(org.apache.http.impl.client.CloseableHttpClient httpClient,
org.apache.http.HttpHost httpHost) |
HopsworksExternalClient(String host,
int port,
boolean hostnameVerification,
String trustStorePath,
software.amazon.awssdk.regions.Region region,
SecretStore secretStore) |
HopsworksExternalClient(String host,
int port,
boolean hostnameVerification,
String trustStorePath,
String apiKeyValue) |
HopsworksExternalClient(String host,
int port,
String apiKeyFilepath,
boolean hostnameVerification,
String trustStorePath) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCertKey() |
String |
getKeyStorePath() |
String |
getTrustStorePath() |
<T> T |
handleRequest(org.apache.http.HttpRequest request,
org.apache.http.client.ResponseHandler<T> responseHandler) |
String |
readApiKey(SecretStore secretStore,
software.amazon.awssdk.regions.Region region,
String apiKeyFilepath)
Read API key.
|
public HopsworksExternalClient(String host, int port, String apiKeyFilepath, boolean hostnameVerification, String trustStorePath) throws IOException, FeatureStoreException, KeyStoreException, CertificateException, NoSuchAlgorithmException, KeyManagementException
public HopsworksExternalClient(String host, int port, boolean hostnameVerification, String trustStorePath, software.amazon.awssdk.regions.Region region, SecretStore secretStore) throws IOException, FeatureStoreException, KeyStoreException, CertificateException, NoSuchAlgorithmException, KeyManagementException
public HopsworksExternalClient(String host, int port, boolean hostnameVerification, String trustStorePath, String apiKeyValue) throws IOException, FeatureStoreException, KeyStoreException, CertificateException, NoSuchAlgorithmException, KeyManagementException
public HopsworksExternalClient(org.apache.http.impl.client.CloseableHttpClient httpClient,
org.apache.http.HttpHost httpHost)
public String readApiKey(SecretStore secretStore, software.amazon.awssdk.regions.Region region, String apiKeyFilepath) throws IOException, FeatureStoreException
secretStore - SecretStore PARAMETER_STORE or SECRET_MANAGERregion - AWS regionsapiKeyFilepath - path to API key fileIOException - IOExceptionFeatureStoreException - FeatureStoreExceptionpublic <T> T handleRequest(org.apache.http.HttpRequest request,
org.apache.http.client.ResponseHandler<T> responseHandler)
throws IOException
handleRequest in interface HopsworksHttpClientIOExceptionpublic String getTrustStorePath()
getTrustStorePath in interface HopsworksHttpClientpublic String getKeyStorePath()
getKeyStorePath in interface HopsworksHttpClientpublic String getCertKey()
getCertKey in interface HopsworksHttpClientCopyright © 2023. All rights reserved.