ProvisioningDeviceClientContract Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. provisioning. device. internal. contract. ProvisioningDeviceClientContract
- com.
public class ProvisioningDeviceClientContract
Field Summary
Modifier and Type | Field and Description |
---|---|
final String | RETRY_AFTER |
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract void | authenticateWithProvisioningService(RequestData requestData, ResponseCallback responseCallback, Object dpsAuthorizationCallbackContext) |
abstract void | close() |
Provisioning |
createProvisioningContract(ProvisioningDeviceClientConfig provisioningDeviceClientConfig)
Static method to create contracts with the service over the specified protocol |
abstract String | getConnectionId() |
abstract String | getHostName() |
abstract void | getRegistrationStatus(RequestData requestData, ResponseCallback responseCallback, Object dpsAuthorizationCallbackContext) |
int |
getRetryValue()
Method to get the DPS retry after value |
abstract void | open(RequestData requestData) |
abstract void | requestNonceForTPM(RequestData requestData, ResponseCallback responseCallback, Object dpsAuthorizationCallbackContext) |
void | setRetrieveRetryAfterValue(String protocolRetryValue) |
Field Details
RETRY_AFTER
protected static final String RETRY_AFTER= "retry-after"
Method Details
authenticateWithProvisioningService
public abstract void authenticateWithProvisioningService(RequestData requestData, ResponseCallback responseCallback, Object dpsAuthorizationCallbackContext)
Parameters:
close
public abstract void close()
createProvisioningContract
public static ProvisioningDeviceClientContract createProvisioningContract(ProvisioningDeviceClientConfig provisioningDeviceClientConfig)
Static method to create contracts with the service over the specified protocol
Parameters:
Returns:
Throws:
getConnectionId
public abstract String getConnectionId()
getHostName
public abstract String getHostName()
getRegistrationStatus
public abstract void getRegistrationStatus(RequestData requestData, ResponseCallback responseCallback, Object dpsAuthorizationCallbackContext)
Parameters:
getRetryValue
public int getRetryValue()
Method to get the DPS retry after value
Returns:
open
public abstract void open(RequestData requestData)
Parameters:
requestNonceForTPM
public abstract void requestNonceForTPM(RequestData requestData, ResponseCallback responseCallback, Object dpsAuthorizationCallbackContext)
Parameters:
setRetrieveRetryAfterValue
protected void setRetrieveRetryAfterValue(String protocolRetryValue)
Parameters:
Applies to
Azure SDK for Java