public class ServiceAuthenticationWithSharedAccessPolicyToken extends AuthenticationMethod
key, policyName, token
Constructor and Description |
---|
ServiceAuthenticationWithSharedAccessPolicyToken(String policyName,
String token)
Constructor to create instance from policy name and policy key
|
Modifier and Type | Method and Description |
---|---|
String |
getPolicyName()
Getter for policy name
|
String |
getToken()
Getter for policy token
|
IotHubConnectionString |
populate(IotHubConnectionString iotHubConnectionString)
Populate given IotHubConnectionString with proper
policy token authentication data
|
protected void |
setPolicyName(String policyName)
Setter for policy name
|
protected void |
setToken(String token)
Setter for policy token
|
public IotHubConnectionString populate(IotHubConnectionString iotHubConnectionString)
populate
in class AuthenticationMethod
iotHubConnectionString
- The iotHubConnectionString object to populatepublic String getPolicyName()
protected final void setPolicyName(String policyName)
policyName
- The string value to setpublic String getToken()
protected final void setToken(String token)
token
- The string value to setCopyright © 2021. All rights reserved.