Interface DeviceCredentialsApi
- All Known Implementing Classes:
DeviceCredentialsApiImpl
public interface DeviceCredentialsApi
Api for device bootstrap
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(NewDeviceRequestRepresentation representation) Remove a device registration.pollCredentials
(String deviceId) Executes single request to credentials endpointpollCredentials
(String deviceId, int interval, int timeout) Schedule polling credentials task, invoking it at the specified execution time and subsequently with the given interval Execution will end after timeoutpollCredentials
(String deviceId, PollingStrategy strategy) Device poll credentialsRegister a new device.
-
Method Details
-
register
Register a new device.- Parameters:
id
- external id of the device to register- Returns:
- new device request representation
-
delete
Remove a device registration.- Parameters:
representation
- representation of new device request to delete
-
pollCredentials
Schedule polling credentials task, invoking it at the specified execution time and subsequently with the given interval Execution will end after timeout- Parameters:
deviceId
- device unique identifierinterval
- - how often request is sent in secondstimeout
- - after how many seconds polling process will expire- Returns:
- device credentials representation
-
pollCredentials
Device poll credentials- Parameters:
deviceId
- device unique identifierstrategy
- credentials polling strategy- Returns:
- device credentials representation
-
pollCredentials
Executes single request to credentials endpoint- Parameters:
deviceId
- device unique identifier- Returns:
- device credentials representation
-