Package com.onfido

Class DocumentManager


  • public class DocumentManager
    extends ResourceManager
    Manager class for the Document resource type. Contains resource-specific methods for interacting with the API.
    • Constructor Detail

      • DocumentManager

        protected DocumentManager​(Config config,
                                  okhttp3.OkHttpClient client)
    • Method Detail

      • download

        public FileDownload download​(String documentId)
                              throws OnfidoException
        Downloads specific documents belonging to an applicant.
        Parameters:
        documentId - the document id
        Returns:
        the downloaded file as a FileDownload
        Throws:
        OnfidoException - the onfido exception
      • list

        public List<Document> list​(String applicantId)
                            throws OnfidoException
        Lists all documents belonging to an applicant.
        Parameters:
        applicantId - the applicant id
        Returns:
        the list of Documents
        Throws:
        OnfidoException - the onfido exception