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

com.envisioniot.enos.iot_http_sdk.StaticDeviceCredential Maven / Gradle / Ivy

package com.envisioniot.enos.iot_http_sdk;

import com.google.common.base.Joiner;

import lombok.Value;

/**
 * This class is used to set up static-activated connection
 * @author shenjieyuan
 */
@Value
public class StaticDeviceCredential implements ICredential
{
    private final String productKey;

    private final String deviceKey;

    private final String deviceSecret;
    
    
    @Override
    public String getAuthPath()
    {
        return Joiner.on('/').join("/auth", productKey, deviceKey);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy