public class HttpsHsmClient
extends java.lang.Object
| Constructor and Description |
|---|
HttpsHsmClient(java.lang.String baseUrl,
UnixDomainSocketChannel unixDomainSocketChannel)
Client object for sending sign requests to an HSM unit
|
| Modifier and Type | Method and Description |
|---|---|
TrustBundleResponse |
getTrustBundle(java.lang.String apiVersion)
Retrieve a trust bundle from an hsm
|
SignResponse |
sign(java.lang.String apiVersion,
java.lang.String moduleName,
SignRequest signRequest,
java.lang.String generationId)
Send a sign request to the HSM using the provided parameters and return the HSM's response
|
public HttpsHsmClient(java.lang.String baseUrl,
UnixDomainSocketChannel unixDomainSocketChannel)
throws java.net.URISyntaxException
baseUrl - The base url of the HSMunixDomainSocketChannel - the implementation of the UnixDomainSocketChannel interface that will be used if any
unix domain socket communication is required. May be null if no unix domain socket communication is required.java.net.URISyntaxException - if the provided base url cannot be converted to a URIpublic SignResponse sign(java.lang.String apiVersion, java.lang.String moduleName, SignRequest signRequest, java.lang.String generationId) throws TransportException, java.io.UnsupportedEncodingException
apiVersion - the api version to usemoduleName - The name of the module for which the sign request is requesting access tosignRequest - the request to sendgenerationId - the generation idTransportException - If there was a problem communicating with the HSMjava.io.UnsupportedEncodingExceptionpublic TrustBundleResponse getTrustBundle(java.lang.String apiVersion) throws TransportException
apiVersion - the api version to useTransportException - if the HSM cannot be reachedCopyright © 2023. All rights reserved.