Class ServerResponse

  • All Implemented Interfaces:
    com.scytales.mvalid.sdk.data.Response

    
    public final class ServerResponse
     implements Response
                        

    Presentation class for received data from server.

    Construct by calling

    • static method fromBytes to instantiate from received bytes or
    • static method fromJson when json string response is available
    ServerResponse {
        String version,
        List<JWTClaimSet> documents,
        List<DocumentError> documentErrors
    }
    
    JWTClaimSet {
        String docType,
        Map<String, ?> nameSpaces,
        Map<String, Map<String, Integer>> errors,
        String rawJwt
    }
    
    DocumentError {
        String docType,
        int errorCode
    }