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.ObjectAn object used to represent data parsed fromDeviceResponseCBOR 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.longgetStatus()Gets the top-level status in theDeviceResponseCBOR.java.lang.StringgetVersion()Gets the version string set in theDeviceResponseCBOR.
-
-
-
Method Detail
-
getVersion
@NonNull public java.lang.String getVersion()
Gets the version string set in theDeviceResponseCBOR.- 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.Documentobjects.
-
getStatus
public long getStatus()
Gets the top-level status in theDeviceResponseCBOR.Note that this value is not a result of parsing/validating the
DeviceResponseCBOR. It's a value which was part of the CBOR and chosen by the remote device.
-
-