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 classDeviceResponse.DocumentThe type Document.
public classDeviceResponse.IssuerSignedThe type Issuer signed.
public classDeviceResponse.IssuerSignedItemThe type Issuer signed item.
public classDeviceResponse.DocumentErrorThe type Document error.
public classDeviceResponse.DeviceSignedThe type Device signed.
public classDeviceResponse.DeviceAuthThe type Device auth.
-
Field Summary
Fields Modifier and Type Field Description public final Stringversionpublic final List<DeviceResponse.Document>documentspublic final List<DeviceResponse.DocumentError>documentErrorspublic final intstatuspublic final Array<byte>rawBytes
-
Method Summary
Modifier and Type Method Description StringgetVersion()Gets version. List<DeviceResponse.Document>getDocuments()Gets documents. List<DeviceResponse.DocumentError>getDocumentErrors()Gets document errors. intgetStatus()Gets status. Array<byte>getRawBytes()Get raw bytes byte [ ]. static DeviceResponsefromBytes(@NonNull() Array<byte> bytes)From bytes device response. StringtoString()-
-
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
-
-
-
-