Class MpicFileService

java.lang.Object
com.digicert.validation.mpic.MpicFileService

public class MpicFileService extends Object
  • Field Details

  • Constructor Details

    • MpicFileService

      public MpicFileService(DcvContext dcvContext)
      Constructs a new MpicService with the specified configuration.
      Parameters:
      dcvContext - context where we can find the necessary dependencies / configuration
  • Method Details

    • getMpicFileDetails

      public MpicFileDetails getMpicFileDetails(List<String> fileUrls)
      Retrieves MPIC file details for a list of file URLs. It will return the first valid and corroborated MPIC response or the first MPIC response with an error.
      Parameters:
      fileUrls - List of file URLs to validate
      Returns:
      MpicFileDetails containing the MPIC details, file URL, file contents, status code, and any errors encountered
    • mapToMpicFileDetailsWithErrorCheck

      private MpicFileDetails mapToMpicFileDetailsWithErrorCheck(MpicFileResponse mpicFileResponse, String fileUrl)
    • mapToMpicFileDetails

      private MpicFileDetails mapToMpicFileDetails(MpicFileResponse mpicFileResponse, String fileUrl, DcvError dcvError)