ServiceAuthenticationWithSharedAccessPolicyToken Class
Definition
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
- 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
| ServiceAuthenticationWithSharedAccessPolicyToken(String policyName, String token) |
Constructor to create instance from policy name and policy key |
Methods
| 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 |