mtrust_urp_core library

Classes

CmdWrapper
Abstract wrapper for the core commands, these commands need to be wrapped in a device specific Command Wrapper before they can be send to a device.
ConnectionStrategy
Connection Strategy is the base class for different strategy types
FoundDevice
A device that was found during scan
UrpApParamters
Parameters for START_AP and CONNECT_AP command
UrpBatteryState
UrpBleState
UrpButtonConfig
UrpButtonMode
UrpCalibration
UrpCommand
Core Commands this are commands all devices share
UrpConfigResponse
Response for urpGetConfig / urpSetConfig / urpResetConfig. The device signs its current config so the host can verify authenticity.
UrpCoreCommand
UrpDeviceClass
UrpDeviceConfig
UrpDeviceId
Response for GET_DEVICE_ID
UrpDeviceIdentifier
UrpDeviceInfo
Response for GET_INFO command
UrpDeviceName
Response for GET_DEVICE_NAME (former id)
UrpDeviceState
UrpDeviceType
UrpErrorCode
UrpEvent
UrpEventType
UrpLog
UrpMessage
UrpMessageHeader
UrpPowerState
UrpPublicKey
Response for GET_PUBLIC_KEY
UrpRequest
UrpResponse
UrpScanConfig
UrpSecureToken
UrpSemanticVersion
UrpSetNameParameters
Parameters for SET_NAME command
UrpSignChallengeParameters
Parameters for urpSignChallenge command. The device signs SHA-256(nonce + device_id) with its RSA-2048 private key and returns the signature so the SDK can complete the OTA auth relay.
UrpSignChallengeResponse
Response for urpSignChallenge. Contains the RSA-2048 PKCS1v15 signature over SHA-256(nonce + device_id), base64-encoded (344 bytes for RSA-2048).
UrpSignedConfigPayload
Signed config payload used in urpSetConfig / urpResetConfig requests. The backend signs the serialized UrpDeviceConfig bytes; the device verifies the signature before applying.
UrpStartDfuParameters
UrpTokeCapability
UrpToken
UrpTokenRequest
UrpTypesVersion
UrpUsbState
UrpWifiState

Enums

ConnectionStatus
The connection status
StrategyAvailability
Reports the availability of a strategy, e.g. if it is supported by the platform or if the user has disabled it (BLE or WiFi disabled)
UrpCoreCommand_Parameters
UrpMessage_Payload

Properties

BleRXCharacteristicUUIDs ↔ Map<UrpDeviceType, String>
getter/setter pair
BleServiceUUIDs ↔ Map<UrpDeviceType, String>
getter/setter pair
BleTXCharacteristicUUIDs ↔ Map<UrpDeviceType, String>
getter/setter pair
protocolMinVersion → UrpSemanticVersion
final
protocolVersion → UrpSemanticVersion
final
urpLogger → Logger
The logger used for the URP Core
final

Exceptions / Errors

ApiException
Thrown when an API call fails
CommandCancelledException
Thrown when a command is cancelled
ConnectionStrategyDisposedException
Thrown when a command is cancelled because the connection strategy is disposed
DeviceDisconnectedException
Thrown when a command is cancelled because the device is disconnected
DeviceError
Thrown when the device returns an error for a command