All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.sdk.iot.device.auth.IotHubX509AuthenticationProvider Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
/*
*  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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy