ServiceAuthenticationWithSharedAccessPolicyKey Class
Definition
Extend AuthenticationMethod class, provide getters for protected properties and implement populate function to set ServiceAuthenticationWithSharedAccessPolicyKey type policy on given IotHubConnectionString object.
public class ServiceAuthenticationWithSharedAccessPolicyKey extends AuthenticationMethod
- Inheritance
Inherited Members
AuthenticationMethod.populate(IotHubConnectionString iotHubConnectionStringBuilder)
java.lang.Object.clone()
java.lang.Object.equals(java.lang.Object)
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.hashCode()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.toString()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)
Constructors
| ServiceAuthenticationWithSharedAccessPolicyKey(String policyName, String key) |
Constructor to create instance from policy name and policy key |
Methods
| getKey() |
Getter for policy key |
| getPolicyName() |
Getter for policy name |
| populate(IotHubConnectionString iotHubConnectionString) |
Populate given IotHubConnectionString with proper policy key authentication data |
| setKey(String key) |
Setter for policy key |
| setPolicyName(String policyName) |
Setter for policy name |