HttpsHsmTrustBundleProvider Class

  • java.lang.Object

public class HttpsHsmTrustBundleProvider implements TrustBundleProvider

This class provides trust bundles to its user by communicating with an HSM to retrieve them. The trust bundle can provide one to many different trust certificates

Method Summary

Modifier and Type Method and Description
String getTrustBundleCerts(String providerUri, String apiVersion, UnixDomainSocketChannel unixDomainSocketChannel)

Retrieve the list of certificates to be trusted as dictated by the HSM

Method Details

getTrustBundleCerts

public String getTrustBundleCerts(String providerUri, String apiVersion, UnixDomainSocketChannel unixDomainSocketChannel)

Retrieve the list of certificates to be trusted as dictated by the HSM

Overrides:

HttpsHsmTrustBundleProvider.getTrustBundleCerts(String providerUri, String apiVersion, UnixDomainSocketChannel unixDomainSocketChannel)

Parameters:

providerUri - the provider uri of the HSM to communicate with
apiVersion - the api version to use
unixDomainSocketChannel - 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. If this argument is null and unix domain socket communication is required, this method will through an IllegalArgumentException.

Returns:

the raw string containing all of the certificates to be trusted. May be one certificate or many certificates

Throws:

URISyntaxException - if the providerUri cannot be parsed as a uri

Applies to