HttpsHsmTrustBundleProvider Class
- java.
lang. Object - TrustBundleProvider
- com.
microsoft. azure. sdk. iot. device. edge. HttpsHsmTrustBundleProvider
- com.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java