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