Package com.scytales.mvalid.sdk.data
Class DeviceResponse
-
- All Implemented Interfaces:
-
com.scytales.mvalid.sdk.data.Response
public final class DeviceResponse implements Response
Presentation class for received data from device.
Construct by calling static method fromBytes to instantiate from received bytes.
DeviceResponse { String version, List<Document> documents, List<DocumentError> documentErrors, int status } Document { String docType, IssuerSigned issuerSigned, DeviceSigned deviceSigned, Map<String, Map<String, Integer>> errors; } IssuerSigned { Map<String, List<IssuerSignedItem>> nameSpaces, byte[] issuerAuth, } IssuerSignedItem { int digestID, byte[] random, String elementIdentifier, byte[] elementValue, Object decodedElementValue, byte[] rawBytes } DeviceSigned { byte[] nameSpaces, DeviceAuth deviceAuth, Map<String, Map<String, ?>> decodedNameSpaces } DeviceAuth { byte[] deviceSignature, byte[] deviceMac }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
DeviceResponse.Document
The type Document.
public class
DeviceResponse.IssuerSigned
The type Issuer signed.
public class
DeviceResponse.IssuerSignedItem
The type Issuer signed item.
public class
DeviceResponse.DocumentError
The type Document error.
public class
DeviceResponse.DeviceSigned
The type Device signed.
public class
DeviceResponse.DeviceAuth
The type Device auth.
-
Field Summary
Fields Modifier and Type Field Description public final String
version
public final List<DeviceResponse.Document>
documents
public final List<DeviceResponse.DocumentError>
documentErrors
public final int
status
public final Array<byte>
rawBytes
-
Method Summary
Modifier and Type Method Description String
getVersion()
Gets version. List<DeviceResponse.Document>
getDocuments()
Gets documents. List<DeviceResponse.DocumentError>
getDocumentErrors()
Gets document errors. int
getStatus()
Gets status. Array<byte>
getRawBytes()
Get raw bytes byte [ ]. static DeviceResponse
fromBytes(@NonNull() Array<byte> bytes)
From bytes device response. String
toString()
-
-
Method Detail
-
getVersion
@NonNull() String getVersion()
Gets version.
-
getDocuments
@NonNull() List<DeviceResponse.Document> getDocuments()
Gets documents.
-
getDocumentErrors
@NonNull() List<DeviceResponse.DocumentError> getDocumentErrors()
Gets document errors.
-
getStatus
int getStatus()
Gets status.
-
getRawBytes
@NonNull() Array<byte> getRawBytes()
Get raw bytes byte [ ].
-
fromBytes
@NonNull() static DeviceResponse fromBytes(@NonNull() Array<byte> bytes)
From bytes device response.
- Parameters:
bytes
- the bytes
-
-
-
-