Interface InputValidator<T,H>
- Type Parameters:
T
- the type of validation objectH
- 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 TypeMethodDescriptionValidates 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 anInputValidationException
for validation errors.
-
Method Details
-
validate
Validates the supplied object using the supplied hint. The returnedValidationResult
should be queried for errors.- Parameters:
object
- the object to validateobjectName
- 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 anInputValidationException
for validation errors.- Parameters:
object
- the object to validateobjectName
- the object namehint
- an optional validation hint- Throws:
se.idsec.signservice.integration.core.error.InputValidationException
- for validation errors
-