public class HttpHsmSignatureProvider extends java.lang.Object implements SignatureProvider
| Constructor and Description |
|---|
HttpHsmSignatureProvider(java.lang.String providerUri,
java.lang.String apiVersion,
UnixDomainSocketChannel unixDomainSocketChannel)
Constructor for an HttpHsmSignatureProvider but using the non-default api version
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
sign(java.lang.String keyName,
java.lang.String data,
java.lang.String generationId)
Sign the provided data using the provided key name
|
public HttpHsmSignatureProvider(java.lang.String providerUri,
java.lang.String apiVersion,
UnixDomainSocketChannel unixDomainSocketChannel)
throws java.net.URISyntaxException,
java.security.NoSuchAlgorithmException
providerUri - the uri for the signing providerapiVersion - the api version to callunixDomainSocketChannel - 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 uri cannot be parsedjava.security.NoSuchAlgorithmException - if the default sign request algorithm cannot be usedpublic java.lang.String sign(java.lang.String keyName,
java.lang.String data,
java.lang.String generationId)
throws TransportException,
java.io.UnsupportedEncodingException
sign in interface SignatureProviderkeyName - the key used for signingdata - the data to be signedgenerationId - the generation idTransportException - If the http client cannot reach the signing partyjava.io.UnsupportedEncodingExceptionCopyright © 2023. All rights reserved.