Package com.android.identity
Class DeviceResponseParser.DeviceResponse
- java.lang.Object
-
- com.android.identity.DeviceResponseParser.DeviceResponse
-
- Enclosing class:
- DeviceResponseParser
public static final class DeviceResponseParser.DeviceResponse extends java.lang.Object
An object used to represent data parsed fromDeviceResponse
CBOR as specified in ISO/IEC 18013-5 section 8.3 Device Retrieval.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DeviceResponseParser.Document>
getDocuments()
Gets the documents in the device response.long
getStatus()
Gets the top-level status in theDeviceResponse
CBOR.java.lang.String
getVersion()
Gets the version string set in theDeviceResponse
CBOR.
-
-
-
Method Detail
-
getVersion
@NonNull public java.lang.String getVersion()
Gets the version string set in theDeviceResponse
CBOR.- Returns:
- the version string e.g. "1.0".
-
getDocuments
@NonNull public java.util.List<DeviceResponseParser.Document> getDocuments()
Gets the documents in the device response.- Returns:
- A list of
DeviceResponseParser.Document
objects.
-
getStatus
public long getStatus()
Gets the top-level status in theDeviceResponse
CBOR.Note that this value is not a result of parsing/validating the
DeviceResponse
CBOR. It's a value which was part of the CBOR and chosen by the remote device.
-
-