Package org.digidoc4j
Interface ContainerValidationResult
- All Superinterfaces:
SignatureValidationResult
,ValidationResult
- All Known Implementing Classes:
org.digidoc4j.impl.AbstractContainerValidationResult
,AsicCompositeContainerValidationResult
,AsicContainerValidationResult
,AsicSTimestampedContainerValidationResult
,DDocContainerValidationResult
,DDocSignatureValidationResult
,PadesContainerValidationResult
,TimeStampContainerValidationResult
An entity encapsulating the validation result information for a whole container.
-
Method Summary
Modifier and TypeMethodDescriptionGet list container related errors.Get list container related warnings.eu.europa.esig.dss.enumerations.Indication
getIndication
(String tokenId) Get indication of the token (signature or timestamp) with the specified ID.Get the list of signature unique IDs.eu.europa.esig.dss.enumerations.SubIndication
getSubIndication
(String tokenId) Get subIndication of the token (signature or timestamp) with the specified ID.Get the list of timestamp unique IDs.eu.europa.esig.dss.enumerations.TimestampQualification
getTimestampQualification
(String timestampId) Get TimestampQualification of the timestamp with the specified ID.Get TimestampValidationReports from signature validation data.getValidationResult
(String tokenId) Get validation result of the token (signature or timestamp) with the specified ID.Methods inherited from interface org.digidoc4j.SignatureValidationResult
getReport, getReports, getSignatureQualification, getSignatureReports, getSimpleReports, saveXmlReports
Methods inherited from interface org.digidoc4j.ValidationResult
getErrors, getWarnings, hasWarnings, isValid
-
Method Details
-
getIndication
Get indication of the token (signature or timestamp) with the specified ID.- Specified by:
getIndication
in interfaceSignatureValidationResult
- Parameters:
tokenId
- ID of a token (signature or timestamp)- Returns:
- indication of the specified token or
null
if the specified ID does not map to any token in this validation result - See Also:
-
getSubIndication
Get subIndication of the token (signature or timestamp) with the specified ID.- Specified by:
getSubIndication
in interfaceSignatureValidationResult
- Parameters:
tokenId
- ID of a token (signature or timestamp)- Returns:
- subIndication of the specified token or
null
if the specified ID does not map to any token in this validation result - See Also:
-
getValidationResult
Get validation result of the token (signature or timestamp) with the specified ID.- Parameters:
tokenId
- ID of a token (signature or timestamp)- Returns:
- validation result of the specified token or
null
if the specified ID does not map to any token - See Also:
-
getSignatureIdList
Get the list of signature unique IDs.- Returns:
- list of signature unique IDs
- See Also:
-
getTimestampIdList
Get the list of timestamp unique IDs.- Returns:
- list of timestamp unique IDs
- See Also:
-
getTimestampQualification
eu.europa.esig.dss.enumerations.TimestampQualification getTimestampQualification(String timestampId) Get TimestampQualification of the timestamp with the specified ID.- Parameters:
timestampId
- ID of a timestamp- Returns:
- timestamp qualification of the specified timestamp or
null
if the specified ID does not map to any timestamp in this validation result - See Also:
-
getTimestampReports
List<TimestampValidationReport> getTimestampReports()Get TimestampValidationReports from signature validation data.- Returns:
- list of TimestampValidationReport
-
getContainerErrors
List<DigiDoc4JException> getContainerErrors()Get list container related errors. DDOC returns a list of errors encountered when validating meta data ASIC returns a list of errors encountered when opening the container- Returns:
- List of exceptions
-
getContainerWarnings
List<DigiDoc4JException> getContainerWarnings()Get list container related warnings.- Returns:
- List of exceptions
-