Class DetailedReport
java.lang.Object
eu.europa.esig.dss.detailedreport.DetailedReport
This class represents the detailed report built during the validation process. It contains information on each
executed constraint. It is composed among other of the
following building blocks:
- Identification of the Signer's Certificate (ISC)
- Validation Context Initialization (VCI)
- X.509 Certificate Validation (XCV)
- Cryptographic Verification (CV)
- Signature Acceptance Validation (SAV)
- Basic Validation Process
- Validation Process for Time-Stamps
- Validation Process for AdES-T
- Validation of LTV forms
- Identification of the Signer's Certificate (ISC)
- Validation Context Initialization (VCI)
- X.509 Certificate Validation (XCV)
- Cryptographic Verification (CV)
- Signature Acceptance Validation (SAV)
- Basic Validation Process
- Validation Process for Time-Stamps
- Validation Process for AdES-T
- Validation of LTV forms
-
Constructor Summary
ConstructorDescriptionDetailedReport
(XmlDetailedReport jaxbDetailedReport) The default constructor -
Method Summary
Modifier and TypeMethodDescriptiongetAdESValidationErrors
(String tokenId) Returns a list of ETSI EN 319 102-1 AdES validation error messages for a token with the given idgetAdESValidationInfos
(String tokenId) Returns a list of ETSI EN 319 102-1 AdES validation info messages for a token with the given idgetAdESValidationWarnings
(String tokenId) Returns a list of ETSI EN 319 102-1 AdES validation warning messages for a token with the given idgetArchiveDataTimestampValidationIndication
(String timestampId) Gets timestamp validation with archive data indication for a timestamp with idgetArchiveDataTimestampValidationSubIndication
(String timestampId) Gets timestamp validation with archive data subIndication for a timestamp with idgetArchiveDataValidationIndication
(String signatureId) Gets validation with archive data indication for a signature with idgetArchiveDataValidationSubIndication
(String signatureId) Gets validation with archive data subIndication for a signature with idgetBasicBuildingBlockById
(String tokenId) This method returns the full content of the Basic Building Block for a token (signature, timestamp, revocation)getBasicBuildingBlocksCertChain
(String tokenId) Returns a list of certificate token ids representing the certificate chain of the token in questiongetBasicBuildingBlocksIndication
(String tokenId) This method returns the result of the Basic Building Block for a token (signature, timestamp, revocation)int
Returns the number of Basic Building Blocks.getBasicBuildingBlocksSignatureId
(int index) Returns the id of the token.This method returns the result of the Basic Building Block for a token (signature, timestamp, revocation)getBasicTimestampValidationIndication
(String timestampId) Gets timestamp basic validation indication for a timestamp with idgetBasicTimestampValidationSubIndication
(String timestampId) Gets timestamp basic validation subIndication for a timestamp with idgetBasicValidationIndication
(String signatureId) Gets basic validation indication for a signature with idgetBasicValidationSubIndication
(String signatureId) Gets basic validation subIndication for a signature with idgetBestProofOfExistence
(String signatureId) Gets best proof-of-existence for the signature with idgetBestSignatureTime
(String signatureId) Returns best-signature-time for the signature with idgetCertificateQualificationAtIssuance
(String certificateId) Gets the qualification for certificate with id at its issuance timegetCertificateQualificationAtValidation
(String certificateId) Gets the qualification for certificate with id at the validation timegetCertificateQualificationErrorsAtIssuanceTime
(String certificateId) Returns a list of qualification validation errors for a certificate with the given id at certificate issuance time NOTE: applicable only on certificate validation (seeeu.europa.esig.dss.validation.CertificateValidator
)getCertificateQualificationErrorsAtValidationTime
(String certificateId) Returns a list of qualification validation errors for a certificate with the given id at validation time NOTE: applicable only on certificate validation (seeeu.europa.esig.dss.validation.CertificateValidator
)getCertificateQualificationInfosAtIssuanceTime
(String certificateId) Returns a list of qualification validation information messages for a certificate with the given id at certificate issuance time NOTE: applicable only on certificate validation (seeeu.europa.esig.dss.validation.CertificateValidator
)getCertificateQualificationInfosAtValidationTime
(String certificateId) Returns a list of qualification validation information messages for a certificate with the given id at validation time NOTE: applicable only on certificate validation (seeeu.europa.esig.dss.validation.CertificateValidator
)getCertificateQualificationWarningsAtIssuanceTime
(String certificateId) Returns a list of qualification validation warnings for a certificate with the given id at certificate issuance time NOTE: applicable only on certificate validation (seeeu.europa.esig.dss.validation.CertificateValidator
)getCertificateQualificationWarningsAtValidationTime
(String certificateId) Returns a list of qualification validation warnings for a certificate with the given id at validation time NOTE: applicable only on certificate validation (seeeu.europa.esig.dss.validation.CertificateValidator
)Returns a list of processedXmlCertificate
s NOTE: the method returns not empty list only for certificate validation processgetCertificateXCVConclusion
(String certificateId) Gets XCV building block conclusion for a certificate with idReturns a list of all evidence record idsgetEvidenceRecordLowestPOETime
(String evidenceRecordId) Returns lowest POE of the evidence record with the given IdgetEvidenceRecordValidationIndication
(String evidenceRecordId) Gets evidence record validation indication for an evidence record with idgetEvidenceRecordValidationSubIndication
(String evidenceRecordId) Gets evidence record validation subIndication for an evidence record with idgetFinalConclusion
(String tokenId) Returns the final validation conclusion for a token with a given IdgetFinalIndication
(String tokenId) Gets the validation indication to a token with id corresponding to the highest validation levelgetFinalSubIndication
(String tokenId) Gets the validation subIndication to a token with id corresponding to the highest validation levelThis method returns the first evidence record id.This method returns the first signature id.This method returns the first timestamp id.getHighestConclusion
(String signatureId) Gets the validation conclusion to a signature with id corresponding to the highest validation levelReturns a list of all independent (detached) evidence recordsReturns a list of all independent (detached) timestampsReturns the JAXB Detailed ReportgetLongTermValidationIndication
(String signatureId) Gets long-term validation indication for a signature with idgetLongTermValidationSubIndication
(String signatureId) Gets long-term validation subIndication for a signature with idgetQualificationErrors
(String tokenId) Returns a list of qualification validation errors for a token with the given idgetQualificationInfos
(String tokenId) Returns a list of qualification validation infos for a token with the given idgetQualificationWarnings
(String tokenId) Returns a list of qualification validation warnings for a token with the given idReturns a list of all revocation data idsReturns a list of all signature idsgetSignatureQualification
(String signatureId) Gets qualification for a signature with idReturns a list of all signaturesgetSigningCertificate
(String bbbId) Gets signing certificate validation block for the given BasicBuildingBlockReturns a list of all timestamp idsgetTimestampQualification
(String timestampId) Gets the final qualification result for a timestamp with idgetTimestampQualificationAtBestPoeTime
(String timestampId) Gets qualification for a timestamp with the given id at its best available POE timegetTimestampQualificationAtTstGenerationTime
(String timestampId) Gets qualification for a timestamp with the given id at the timestamp generation timegetTLAnalysisById
(String tlId) This method returns a complete block of a TL validationgetXmlCertificateById
(String certificateId) Returns anXmlCertificate
by id if exists, null otherwise NOTE: should be used only for certificate validation processgetXmlEvidenceRecordById
(String evidenceRecordId) Returns anXmlEvidenceRecord
by the given id Null if the evidence record is not foundgetXmlSignatureById
(String signatureId) Returns anXmlSignature
by the given id Null if the signature is not foundgetXmlTimestampById
(String timestampId) Returns anXmlTimestamp
by the given id Null if the timestamp is not foundboolean
Returns if the certificate validation has been performed (therefore the certificate corresponding data can be retrieved)
-
Constructor Details
-
DetailedReport
The default constructor- Parameters:
jaxbDetailedReport
-XmlDetailedReport
-
-
Method Details
-
getBasicBuildingBlocksIndication
This method returns the result of the Basic Building Block for a token (signature, timestamp, revocation)- Parameters:
tokenId
- the token identifier- Returns:
- the Indication
-
getBasicBuildingBlocksSubIndication
This method returns the result of the Basic Building Block for a token (signature, timestamp, revocation)- Parameters:
tokenId
- the token identifier- Returns:
- the SubIndication
-
getBasicBuildingBlocksCertChain
-
getBasicBuildingBlockById
This method returns the full content of the Basic Building Block for a token (signature, timestamp, revocation)- Parameters:
tokenId
- the token identifier- Returns:
- the XmlBasicBuildingBlocks
-
getBasicBuildingBlocksNumber
public int getBasicBuildingBlocksNumber()Returns the number of Basic Building Blocks.- Returns:
int
number of Basic Building Blocks
-
getBasicBuildingBlocksSignatureId
Returns the id of the token. The signature is identified by its index: 0 for the first one.- Parameters:
index
- (position/order) of the signature within the report- Returns:
String
identifying the token
-
getSignatureIds
-
getFirstSignatureId
This method returns the first signature id.- Returns:
- the first signature id
-
getFirstTimestampId
This method returns the first timestamp id.- Returns:
- the first timestamp id
-
getTimestampIds
-
getFirstEvidenceRecordId
This method returns the first evidence record id.- Returns:
- the first evidence record id
-
getEvidenceRecordIds
-
getRevocationIds
-
getBestSignatureTime
-
getBestProofOfExistence
Gets best proof-of-existence for the signature with id- Parameters:
signatureId
-String
- Returns:
XmlProofOfExistence
-
getEvidenceRecordLowestPOETime
-
getBasicValidationIndication
Gets basic validation indication for a signature with id- Parameters:
signatureId
-String
- Returns:
Indication
-
getBasicValidationSubIndication
Gets basic validation subIndication for a signature with id- Parameters:
signatureId
-String
- Returns:
SubIndication
-
getBasicTimestampValidationIndication
Gets timestamp basic validation indication for a timestamp with id- Parameters:
timestampId
-String
- Returns:
Indication
-
getBasicTimestampValidationSubIndication
Gets timestamp basic validation subIndication for a timestamp with id- Parameters:
timestampId
-String
- Returns:
Indication
-
getArchiveDataTimestampValidationIndication
Gets timestamp validation with archive data indication for a timestamp with id- Parameters:
timestampId
-String
- Returns:
Indication
-
getArchiveDataTimestampValidationSubIndication
Gets timestamp validation with archive data subIndication for a timestamp with id- Parameters:
timestampId
-String
- Returns:
SubIndication
-
getEvidenceRecordValidationIndication
Gets evidence record validation indication for an evidence record with id- Parameters:
evidenceRecordId
-String
- Returns:
Indication
-
getEvidenceRecordValidationSubIndication
Gets evidence record validation subIndication for an evidence record with id- Parameters:
evidenceRecordId
-String
- Returns:
SubIndication
-
getXmlEvidenceRecordById
Returns anXmlEvidenceRecord
by the given id Null if the evidence record is not found- Parameters:
evidenceRecordId
-String
id of an evidence record to get- Returns:
XmlEvidenceRecord
-
getLongTermValidationIndication
Gets long-term validation indication for a signature with id- Parameters:
signatureId
-String
- Returns:
Indication
-
getLongTermValidationSubIndication
Gets long-term validation subIndication for a signature with id- Parameters:
signatureId
-String
- Returns:
Indication
-
getArchiveDataValidationIndication
Gets validation with archive data indication for a signature with id- Parameters:
signatureId
-String
- Returns:
Indication
-
getArchiveDataValidationSubIndication
Gets validation with archive data subIndication for a signature with id- Parameters:
signatureId
-String
- Returns:
SubIndication
-
getSignatureQualification
Gets qualification for a signature with id- Parameters:
signatureId
-String
- Returns:
SignatureQualification
-
getTimestampQualification
Gets the final qualification result for a timestamp with id- Parameters:
timestampId
-String
- Returns:
TimestampQualification
-
getTimestampQualificationAtTstGenerationTime
Gets qualification for a timestamp with the given id at the timestamp generation time- Parameters:
timestampId
-String
- Returns:
TimestampQualification
-
getTimestampQualificationAtBestPoeTime
Gets qualification for a timestamp with the given id at its best available POE time- Parameters:
timestampId
-String
- Returns:
TimestampQualification
-
getXmlTimestampById
Returns anXmlTimestamp
by the given id Null if the timestamp is not found- Parameters:
timestampId
-String
id of a timestamp to get- Returns:
XmlTimestamp
-
getXmlSignatureById
Returns anXmlSignature
by the given id Null if the signature is not found- Parameters:
signatureId
-String
id of a signature to get- Returns:
XmlSignature
-
getXmlCertificateById
Returns anXmlCertificate
by id if exists, null otherwise NOTE: should be used only for certificate validation process- Parameters:
certificateId
- id of a certificate to extract- Returns:
XmlCertificate
-
getSignatures
Returns a list of all signatures- Returns:
- a list of
XmlSignature
s
-
getIndependentTimestamps
Returns a list of all independent (detached) timestamps- Returns:
- a list of
XmlTimestamp
s
-
getIndependentEvidenceRecords
Returns a list of all independent (detached) evidence records- Returns:
- a list of
XmlEvidenceRecord
s
-
getCertificates
Returns a list of processedXmlCertificate
s NOTE: the method returns not empty list only for certificate validation process- Returns:
- list of
XmlCertificate
s
-
getTLAnalysisById
This method returns a complete block of a TL validation- Parameters:
tlId
- the LOTL/TL identifier- Returns:
- XmlTLAnalysis
-
getJAXBModel
-
isCertificateValidation
public boolean isCertificateValidation()Returns if the certificate validation has been performed (therefore the certificate corresponding data can be retrieved)- Returns:
- if the certificate validation has been performed
-
getCertificateQualificationAtIssuance
Gets the qualification for certificate with id at its issuance time- Parameters:
certificateId
-String
- Returns:
CertificateQualification
-
getCertificateQualificationAtValidation
Gets the qualification for certificate with id at the validation time- Parameters:
certificateId
-String
- Returns:
CertificateQualification
-
getCertificateXCVConclusion
Gets XCV building block conclusion for a certificate with id- Parameters:
certificateId
-String
- Returns:
XmlConclusion
-
getFinalConclusion
Returns the final validation conclusion for a token with a given Id- Parameters:
tokenId
-String
of a token to get the final validation conclusion result for- Returns:
XmlConclusion
-
getFinalIndication
Gets the validation indication to a token with id corresponding to the highest validation level- Parameters:
tokenId
-String
- Returns:
Indication
-
getFinalSubIndication
Gets the validation subIndication to a token with id corresponding to the highest validation level- Parameters:
tokenId
-String
- Returns:
Indication
-
getHighestConclusion
Gets the validation conclusion to a signature with id corresponding to the highest validation level- Parameters:
signatureId
-String
- Returns:
Indication
-
getSigningCertificate
-
getAdESValidationErrors
-
getAdESValidationWarnings
-
getAdESValidationInfos
-
getQualificationErrors
-
getQualificationWarnings
-
getQualificationInfos
-
getCertificateQualificationErrorsAtIssuanceTime
Returns a list of qualification validation errors for a certificate with the given id at certificate issuance time NOTE: applicable only on certificate validation (seeeu.europa.esig.dss.validation.CertificateValidator
) -
getCertificateQualificationWarningsAtIssuanceTime
Returns a list of qualification validation warnings for a certificate with the given id at certificate issuance time NOTE: applicable only on certificate validation (seeeu.europa.esig.dss.validation.CertificateValidator
) -
getCertificateQualificationInfosAtIssuanceTime
Returns a list of qualification validation information messages for a certificate with the given id at certificate issuance time NOTE: applicable only on certificate validation (seeeu.europa.esig.dss.validation.CertificateValidator
) -
getCertificateQualificationErrorsAtValidationTime
Returns a list of qualification validation errors for a certificate with the given id at validation time NOTE: applicable only on certificate validation (seeeu.europa.esig.dss.validation.CertificateValidator
) -
getCertificateQualificationWarningsAtValidationTime
Returns a list of qualification validation warnings for a certificate with the given id at validation time NOTE: applicable only on certificate validation (seeeu.europa.esig.dss.validation.CertificateValidator
) -
getCertificateQualificationInfosAtValidationTime
Returns a list of qualification validation information messages for a certificate with the given id at validation time NOTE: applicable only on certificate validation (seeeu.europa.esig.dss.validation.CertificateValidator
)
-