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, getServiceCredentials
public 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
KSISigningClient
sign
in interface KSISigningClient
request
- instance of InputStream
that contains request.Future
containing KSI response.KSIClientException
public ApacheHttpPostRequestFuture extend(InputStream request) throws KSIClientException
KSIExtenderClient
extend
in interface KSIExtenderClient
request
- instance of InputStream
that contains request.Future
containing KSI response.KSIClientException
public ApacheHttpGetRequestFuture getPublicationsFile() throws KSIClientException
KSIPublicationsFileClient
getPublicationsFile
in interface KSIPublicationsFileClient
Future
containing KSI publications file data.KSIClientException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public ServiceCredentials getServiceCredentials()
public PduVersion getPduVersion()
Copyright © 2024 Guardtime. All rights reserved.