Class Attachment

    • Constructor Detail

      • Attachment

        protected Attachment​(AttachmentType type,
                             String description)
        Creates a new attachment with the specified description.
        Parameters:
        type - The type. Must not be null.
        description - The description, null if not specified.
    • Method Detail

      • toJSONObject

        public net.minidev.json.JSONObject toJSONObject()
        Returns a JSON object representation of this attachment.
        Returns:
        The JSON object.
      • parse

        public static Attachment parse​(net.minidev.json.JSONObject jsonObject)
                                throws ParseException
        Parses an identity evidence attachment from the specified JSON object.
        Parameters:
        jsonObject - The JSON object. Must not be null.
        Returns:
        The identity evidence attachment.
        Throws:
        ParseException - If parsing failed.
      • parseList

        public static List<AttachmentparseList​(net.minidev.json.JSONArray jsonArray)
                                          throws ParseException
        Parses a list of identity evidence attachments from the specified JSON array.
        Parameters:
        jsonArray - The JSON array, null if not specified.
        Returns:
        The list of identity evidence attachments, null if not specified.
        Throws:
        ParseException - If parsing failed.