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 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)getBasicValidationIndication
(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 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 signature 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) 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 qualification for a timestamp with idgetTimestampValidationIndication
(String timestampId) Gets timestamp validation indication for a timestamp with idgetTimestampValidationSubIndication
(String timestampId) Gets timestamp validation subIndication for a timestamp with idgetTLAnalysisById
(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 processgetXmlSignatureById
(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
Returns a list of certificate token ids representing the certificate chain of the token in question -
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
Returns a list of all signature ids- Returns:
- a list of
String
ids
-
getFirstSignatureId
This method returns the first signature id.- Returns:
- the first signature id
-
getTimestampIds
Returns a list of all timestamp ids- Returns:
- a list of
String
ids
-
getRevocationIds
Returns a list of all revocation data ids- Returns:
- a list of
String
ids
-
getBestSignatureTime
Returns best-signature-time for the signature with id -
getBestProofOfExistence
Gets best proof-of-existence for the signature with id- Parameters:
signatureId
-String
- Returns:
XmlProofOfExistence
-
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
-
getTimestampValidationIndication
Gets timestamp validation indication for a timestamp with id- Parameters:
timestampId
-String
- Returns:
Indication
-
getTimestampValidationSubIndication
Gets timestamp validation subIndication for a timestamp with id- Parameters:
timestampId
-String
- Returns:
Indication
-
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:
Indication
-
getSignatureQualification
Gets qualification for a signature with id- Parameters:
signatureId
-String
- Returns:
Indication
-
getTimestampQualification
Gets qualification for a timestamp with id- Parameters:
timestampId
-String
- Returns:
Indication
-
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
-
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
Returns the JAXB Detailed Report- Returns:
XmlDetailedReport
-
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
Gets signing certificate validation block for the given BasicBuildingBlock -
getAdESValidationErrors
Returns a list of ETSI EN 319 102-1 AdES validation error messages for a token with the given id -
getAdESValidationWarnings
Returns a list of ETSI EN 319 102-1 AdES validation warning messages for a token with the given id -
getAdESValidationInfos
Returns a list of ETSI EN 319 102-1 AdES validation info messages for a token with the given id -
getQualificationErrors
Returns a list of qualification validation errors for a token with the given id -
getQualificationWarnings
Returns a list of qualification validation warnings for a token with the given id -
getQualificationInfos
Returns a list of qualification validation infos for a token with the given id -
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
)
-