Interface InputValidator<T,H>

Type Parameters:
T - the type of validation object
H - hint type
All Known Implementing Classes:
AbstractInputValidator, AuthnRequirementsValidator, EtsiAdesRequirementValidator, FileResourceValidator, PdfSignaturePageValidator, SigningCertificateRequirementsValidator, SignMessageParametersValidator, SignRequestInputValidator, TbsDocumentValidator, VisiblePdfSignatureRequirementValidator, VisiblePdfSignatureUserInformationValidator

public interface InputValidator<T,H>
Interface for input validators.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Method Summary

    Modifier and Type
    Method
    Description
    validate(T object, String objectName, H hint)
    Validates the supplied object using the supplied hint.
    void
    validateObject(T object, String objectName, H hint)
    Validates the supplied object using the supplied hint and throws an InputValidationException for validation errors.
  • Method Details

    • validate

      ValidationResult validate(@Nullable T object, @Nullable String objectName, @Nullable H hint)
      Validates the supplied object using the supplied hint. The returned ValidationResult should be queried for errors.
      Parameters:
      object - the object to validate
      objectName - the object name (null for no name)
      hint - an optional validation hint
      Returns:
      a validation errors object
    • validateObject

      void validateObject(@Nullable T object, @Nonnull String objectName, @Nullable H hint) throws se.idsec.signservice.integration.core.error.InputValidationException
      Validates the supplied object using the supplied hint and throws an InputValidationException for validation errors.
      Parameters:
      object - the object to validate
      objectName - the object name
      hint - an optional validation hint
      Throws:
      se.idsec.signservice.integration.core.error.InputValidationException - for validation errors