Class PdfContainsAcroformException

All Implemented Interfaces:
Serializable

public class PdfContainsAcroformException extends SignServiceIntegrationException
An exception that is reported by ExtendedSignServiceIntegrationService.preparePdfDocument(String, byte[], PdfSignaturePagePreferences, Boolean, String) if a PDF document contains an Acroform and the policy states that it should not be flattened.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
See Also:
  • Field Details

    • errorCode

      public static final ErrorCode errorCode
      The error code for this exception.
  • Constructor Details

    • PdfContainsAcroformException

      public PdfContainsAcroformException(String message)
      Constructor.
      Parameters:
      message - the error message
    • PdfContainsAcroformException

      public PdfContainsAcroformException(String message, Throwable cause)
      Constructor.
      Parameters:
      message - the error message
      cause - the cause of the error
  • Method Details

    • getHttpStatus

      public int getHttpStatus()
      If the SignService Integration Service is used from a REST API, the HTTP status may be useful when reporting errors.
      Specified by:
      getHttpStatus in class SignServiceIntegrationException
      Returns:
      the HTTP status code that should be used when sending an error response for this exception