ServiceAuthenticationWithSharedAccessPolicyToken 类

定义

Extend AuthenticationMethod class, provide getters for protected properties and implement populate function to set ServiceAuthenticationWithSharedAccessPolicyToken type policy on given IotHubConnectionString object.

public class ServiceAuthenticationWithSharedAccessPolicyToken extends AuthenticationMethod
继承
java.lang.Object
ServiceAuthenticationWithSharedAccessPolicyToken

继承成员

构造函数

ServiceAuthenticationWithSharedAccessPolicyToken(String policyName, String token)

Constructor to create instance from policy name and policy key

方法

getPolicyName()

Getter for policy name

getToken()

Getter for policy token

populate(IotHubConnectionString iotHubConnectionString)

Populate given IotHubConnectionString with proper policy token authentication data

setPolicyName(String policyName)

Setter for policy name

setToken(String token)

Setter for policy token

适用于