Class DeviceEngagement
-
- All Implemented Interfaces:
public final class DeviceEngagement
Presentation class for Device Engagement. Usually DeviceEngagement will be received from implementations of DeviceEngagementCallback.
If original, as received from holder's device, bytes are needed, these can be retrieved by calling getRawBytes method.
Parse QR contents by using fromQR to create an instance of DeviceEngagement Use fromBytes to create an instance of DeviceEngagementDeviceEngagement { String version, Security security, List<DeviceRetrievalMethod> deviceRetrievalMethods, ServerRetrievalMethods serverRetrievalMethods, byte[] rawBytes } DeviceRetrievalMethod.NFC { Type type, int version, int maxLengthCommand, int maxLengthResponse } DeviceRetrievalMethod.BLE { Type type, int version, Boolean peripheralServerMode, Boolean clientCentralMode, UUID peripheralServerUUID, UUID clientCentralUUID, byte[] peripheralDeviceAddress } DeviceRetrievalMethod.WIFIAware { Type type, int version, String password, Integer operationClass, Integer channelNumber, byte[] supportedBands } DeviceRetrievalMethod.Type { NFC, BLE, WIFI_AWARE } ServerRetrievalMethods { WebAPI webAPI, OpenIdConnect openIdConnect } ServerRetrievalMethods.WebAPI { int version, String url, String token } ServerRetrievalMethods.OpenIdConnect { int version, String url, String token }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
DeviceEngagement.RetrievalMethod
The interface Retrieval method.
public final class
DeviceEngagement.Security
The type Security.
public abstract class
DeviceEngagement.DeviceRetrievalMethod
The type Device retrieval method.
public final class
DeviceEngagement.ServerRetrievalMethods
The type Server retrieval methods.
-
Field Summary
Fields Modifier and Type Field Description public final String
version
public final DeviceEngagement.Security
security
public final DeviceEngagement.ServerRetrievalMethods
serverRetrievalMethods
public final Array<byte>
rawBytes
public List<DeviceEngagement.DeviceRetrievalMethod>
deviceRetrievalMethods
public List<String>
rfuAndApplicationSpecific
-
Method Summary
Modifier and Type Method Description String
getVersion()
Gets version. DeviceEngagement.Security
getSecurity()
Gets security. DeviceEngagement.ServerRetrievalMethods
getServerRetrievalMethods()
Gets server retrieval methods. Array<byte>
getRawBytes()
Get raw bytes byte [ ]. List<DeviceEngagement.DeviceRetrievalMethod>
getDeviceRetrievalMethods()
Gets device retrieval methods. List<String>
getRfuAndApplicationSpecific()
Gets rfu and application specific information as a list of strings. static DeviceEngagement
fromBytes(@NonNull() Array<byte> bytes)
From bytes device engagement. static DeviceEngagement
fromQR(@NonNull() String qrContent)
From qr device engagement. String
toString()
-
-
Method Detail
-
getVersion
@NonNull() String getVersion()
Gets version.
-
getSecurity
@NonNull() DeviceEngagement.Security getSecurity()
Gets security.
-
getServerRetrievalMethods
@Nullable() DeviceEngagement.ServerRetrievalMethods getServerRetrievalMethods()
Gets server retrieval methods.
-
getRawBytes
@NonNull() Array<byte> getRawBytes()
Get raw bytes byte [ ].
-
getDeviceRetrievalMethods
@NonNull() List<DeviceEngagement.DeviceRetrievalMethod> getDeviceRetrievalMethods()
Gets device retrieval methods.
-
getRfuAndApplicationSpecific
@Nullable() List<String> getRfuAndApplicationSpecific()
Gets rfu and application specific information as a list of strings.
-
fromBytes
@NonNull() static DeviceEngagement fromBytes(@NonNull() Array<byte> bytes)
From bytes device engagement.
- Parameters:
bytes
- the bytes
-
fromQR
@NonNull() static DeviceEngagement fromQR(@NonNull() String qrContent)
From qr device engagement.
- Parameters:
qrContent
- the qr content
-
-
-
-