Class DataToValidateDTO
java.lang.Object
eu.europa.esig.dss.ws.validation.dto.DataToValidateDTO
Represents a validation request DTO
-
Constructor Summary
ConstructorDescriptionEmpty constructorDataToValidateDTO
(RemoteDocument signedDocument, RemoteDocument originalDocument, RemoteDocument policy) Constructor to validate a documentDataToValidateDTO
(RemoteDocument signedDocument, RemoteDocument originalDocument, RemoteDocument policy, String signatureId) Constructor to extract original documentsDataToValidateDTO
(RemoteDocument signedDocument, List<RemoteDocument> originalDocuments, RemoteDocument policy) Constructor to validate a documentDataToValidateDTO
(RemoteDocument signedDocument, List<RemoteDocument> originalDocuments, RemoteDocument policy, String signatureId) Constructor to extract original documents -
Method Summary
Modifier and TypeMethodDescriptionGets the original (detached) documentsGets the validation policyGets the signature id to get original documents forGets signed documentGets a token extraction strategyvoid
setOriginalDocuments
(List<RemoteDocument> originalDocuments) Sets the original (detached) documentsvoid
setPolicy
(RemoteDocument policy) Sets the validation policyvoid
setSignatureId
(String signatureId) Sets the signature id to get original documents forvoid
setSignedDocument
(RemoteDocument signedDocument) Sets the signed documentvoid
setTokenExtractionStrategy
(TokenExtractionStrategy tokenExtractionStrategy) Sets a token extraction strategy
-
Constructor Details
-
DataToValidateDTO
public DataToValidateDTO()Empty constructor -
DataToValidateDTO
public DataToValidateDTO(RemoteDocument signedDocument, RemoteDocument originalDocument, RemoteDocument policy) Constructor to validate a document- Parameters:
signedDocument
-RemoteDocument
to validateoriginalDocument
-RemoteDocument
detached documentpolicy
-RemoteDocument
validation policy
-
DataToValidateDTO
public DataToValidateDTO(RemoteDocument signedDocument, List<RemoteDocument> originalDocuments, RemoteDocument policy) Constructor to validate a document- Parameters:
signedDocument
-RemoteDocument
to validateoriginalDocuments
- list ofRemoteDocument
detached documentspolicy
-RemoteDocument
validation policy
-
DataToValidateDTO
public DataToValidateDTO(RemoteDocument signedDocument, RemoteDocument originalDocument, RemoteDocument policy, String signatureId) Constructor to extract original documents- Parameters:
signedDocument
-RemoteDocument
to validateoriginalDocument
-RemoteDocument
detached documentpolicy
-RemoteDocument
validation policysignatureId
-String
to extract original documents for
-
DataToValidateDTO
public DataToValidateDTO(RemoteDocument signedDocument, List<RemoteDocument> originalDocuments, RemoteDocument policy, String signatureId) Constructor to extract original documents- Parameters:
signedDocument
-RemoteDocument
to validateoriginalDocuments
- list ofRemoteDocument
detached documentspolicy
-RemoteDocument
validation policysignatureId
-String
to extract original documents for
-
-
Method Details
-
getSignedDocument
Gets signed document- Returns:
RemoteDocument
-
setSignedDocument
Sets the signed document- Parameters:
signedDocument
-RemoteDocument
-
getOriginalDocuments
Gets the original (detached) documents- Returns:
- a list of
RemoteDocument
s
-
setOriginalDocuments
Sets the original (detached) documents- Parameters:
originalDocuments
- a list ofRemoteDocument
s
-
getPolicy
Gets the validation policy- Returns:
RemoteDocument
-
setPolicy
Sets the validation policy- Parameters:
policy
-RemoteDocument
-
getTokenExtractionStrategy
Gets a token extraction strategy- Returns:
TokenExtractionStrategy
-
setTokenExtractionStrategy
Sets a token extraction strategy- Parameters:
tokenExtractionStrategy
-TokenExtractionStrategy
-
getSignatureId
Gets the signature id to get original documents for- Returns:
String
-
setSignatureId
Sets the signature id to get original documents for- Parameters:
signatureId
-String
-