Class CredentialShareServiceImpl

    • Constructor Detail

      • CredentialShareServiceImpl

        public CredentialShareServiceImpl()
    • Method Detail

      • decrypt

        public org.json.JSONObject decrypt​(String credential,
                                           String credentialSubject,
                                           String encryptionPin)
      • getDocuments

        public Map<String,​byte[]> getDocuments​(org.json.JSONObject credentialJSON,
                                                     String credentialType,
                                                     String requestId,
                                                     String sign)
      • getBiometricsDataJSON

        public org.json.JSONObject getBiometricsDataJSON​(String individualBiometric,
                                                         Map<String,​Object> attributes)
        Decode biometrics data from CBEFF and return biometrics JSON object.
        Parameters:
        individualBiometric -
        attributes -
        Returns:
      • setTemplateAttributes

        public void setTemplateAttributes​(String jsonString,
                                          Map<String,​Object> attribute)
                                   throws IOException,
                                          org.json.simple.parser.ParseException
        Gets the artifacts.
        Parameters:
        idJsonString - the id json string
        attribute - the attribute
        Throws:
        IOException - Signals that an I/O exception has occurred.
        org.json.simple.parser.ParseException
      • extractFaceImageData

        public byte[] extractFaceImageData​(byte[] decodedBioValue)
      • getCredentialSubject

        public String getCredentialSubject​(String credential)
      • decryptAttribute

        public org.json.JSONObject decryptAttribute​(org.json.JSONObject data,
                                                    String encryptionPin,
                                                    String credential)
                                             throws org.json.simple.parser.ParseException
        Decrypt protected (encrypted) attributes.
        Parameters:
        data -
        encryptionPin -
        credential -
        Returns:
        Throws:
        org.json.simple.parser.ParseException