com.microsoft.azure.sdk.iot.device.auth.IotHubX509AuthenticationProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iot-device-client Show documentation
Show all versions of iot-device-client Show documentation
The Microsoft Azure IoT Device SDK for Java
/*
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
package com.microsoft.azure.sdk.iot.device.auth;
import com.microsoft.azure.sdk.iot.deps.auth.IotHubSSLContext;
import javax.net.ssl.SSLContext;
import java.io.IOException;
public abstract class IotHubX509AuthenticationProvider
{
IotHubSSLContext iotHubSSLContext;
/**
* Getter for SSLContext
* @return the saved SSLContext instance
* @throws IOException if an exception occurs while retrieving the SSLContext
*/
public abstract SSLContext getSSLContext() throws IOException;
/**
* Setter for the providing trusted certificate.
* @param pathToCertificate path to the certificate for one way authentication.
*/
public abstract void setPathToIotHubTrustedCert(String pathToCertificate);
/**
* Setter for the user trusted certificate
* @param certificate valid user trusted certificate string
*/
public abstract void setIotHubTrustedCert(String certificate);
}