Class DeviceEngagement
-
- All Implemented Interfaces:
public final class DeviceEngagementPresentation 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 interfaceDeviceEngagement.RetrievalMethodThe interface Retrieval method.
public final classDeviceEngagement.SecurityThe type Security.
public abstract classDeviceEngagement.DeviceRetrievalMethodThe type Device retrieval method.
public final classDeviceEngagement.ServerRetrievalMethodsThe type Server retrieval methods.
-
Field Summary
Fields Modifier and Type Field Description public final Stringversionpublic final DeviceEngagement.Securitysecuritypublic final DeviceEngagement.ServerRetrievalMethodsserverRetrievalMethodspublic final Array<byte>rawBytespublic List<DeviceEngagement.DeviceRetrievalMethod>deviceRetrievalMethodspublic List<String>rfuAndApplicationSpecific
-
Method Summary
Modifier and Type Method Description StringgetVersion()Gets version. DeviceEngagement.SecuritygetSecurity()Gets security. DeviceEngagement.ServerRetrievalMethodsgetServerRetrievalMethods()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 DeviceEngagementfromBytes(@NonNull() Array<byte> bytes)From bytes device engagement. static DeviceEngagementfromQR(@NonNull() String qrContent)From qr device engagement. StringtoString()-
-
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
-
-
-
-