public class ApacheHttpClient extends AbstractHttpClient implements KSISigningClient, KSIExtenderClient, KSIPublicationsFileClient
HEADER_APPLICATION_KSI_REQUEST, HEADER_NAME_CONTENT_TYPE, settings| Constructor and Description |
|---|
ApacheHttpClient(AbstractHttpClientSettings settings,
ApacheHttpClientConfiguration asyncConfiguration)
Constructs ApacheHttpClient with configuration values passed in.
|
ApacheHttpClient(HttpClientSettings settings)
Constructs ApacheHttpClient with configuration values defined by
ApacheHttpClientSimpleConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ApacheHttpPostRequestFuture |
extend(InputStream request)
Extends the existing signatures.
|
PduVersion |
getPduVersion()
Gets the PDU format version of the client.
|
ApacheHttpGetRequestFuture |
getPublicationsFile()
Gets the publications file.
|
ServiceCredentials |
getServiceCredentials()
Gets the service credentials used by this client.
|
ApacheHttpPostRequestFuture |
sign(InputStream request)
Creates new KSI signature.
|
String |
toString() |
getPduVersion, getServiceCredentialspublic ApacheHttpClient(HttpClientSettings settings)
ApacheHttpClientSimpleConfiguration.settings - settings defined by HttpClientSettings.public ApacheHttpClient(AbstractHttpClientSettings settings, ApacheHttpClientConfiguration asyncConfiguration)
settings - settings defined by HttpClientSettings.asyncConfiguration - configuration defined by an instance of ApacheHttpClientConfiguration.public ApacheHttpPostRequestFuture sign(InputStream request) throws KSIClientException
KSISigningClientsign in interface KSISigningClientrequest - instance of InputStream that contains request.Future containing KSI response.KSIClientExceptionpublic ApacheHttpPostRequestFuture extend(InputStream request) throws KSIClientException
KSIExtenderClientextend in interface KSIExtenderClientrequest - instance of InputStream that contains request.Future containing KSI response.KSIClientExceptionpublic ApacheHttpGetRequestFuture getPublicationsFile() throws KSIClientException
KSIPublicationsFileClientgetPublicationsFile in interface KSIPublicationsFileClientFuture containing KSI publications file data.KSIClientExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic ServiceCredentials getServiceCredentials()
public PduVersion getPduVersion()
Copyright © 2024 Guardtime. All rights reserved.