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
    }