HttpsHsmTrustBundleProvider Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.device.edge.HttpsHsmTrustBundleProvider

Implements

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

Constructor Summary

Constructor Description
HttpsHsmTrustBundleProvider()

Method Summary

Modifier and Type Method and Description
java.lang.String getTrustBundleCerts(String providerUri, String apiVersion)

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

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

HttpsHsmTrustBundleProvider

public HttpsHsmTrustBundleProvider()

Method Details

getTrustBundleCerts

public String getTrustBundleCerts(String providerUri, String apiVersion)

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

Parameters:

providerUri - the provider uri of the HSM to communicate with
apiVersion - the api version to use

Returns:

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

Throws:

java.net.URISyntaxException - if the providerUri cannot be parsed as a uri
TransportException - if the providerUri cannot be parsed as a uri
java.io.IOException - if the providerUri cannot be parsed as a uri
HsmException - if the providerUri cannot be parsed as a uri

Applies to