Package eu.europa.esig.dss.simplereport
Class SimpleReport
java.lang.Object
eu.europa.esig.dss.simplereport.SimpleReport
public class SimpleReport extends Object
A SimpleReport holder to fetch values from a JAXB SimpleReport.
-
Constructor Summary
Constructors Constructor Description SimpleReport(XmlSimpleReport wrapped) -
Method Summary
Modifier and Type Method Description List<String>getErrors(String signatureId)This method retrieve the errors for a given signature idStringgetFirstSignatureId()This method returns the first signature id.eu.europa.esig.dss.enumerations.IndicationgetIndication(String signatureId)This method returns the indication obtained after the validation of the signature.List<String>getInfo(String signatureId)This method retrieve the information for a given signature idXmlSimpleReportgetJaxbModel()This methods returns the jaxb model of the simple reporteu.europa.esig.dss.enumerations.SignatureLevelgetSignatureFormat(String signatureId)This method returns the signature format (XAdES_BASELINE_B...)List<String>getSignatureIdList()This method retrieves the signature idseu.europa.esig.dss.enumerations.SignatureQualificationgetSignatureQualification(String signatureId)Returns the signature type: QES, AdES, AdESqc, NAintgetSignaturesCount()This method returns the number of signaturesStringgetSignedBy(String signatureId)This method returns the signedByDategetSigningTime(String signatureId)This method returns the signature timeeu.europa.esig.dss.enumerations.SubIndicationgetSubIndication(String signatureId)This method returns the sub-indication obtained after the validation of the signature.DategetValidationTime()This method returns the validation time.intgetValidSignaturesCount()This method returns the number of valid signaturesList<String>getWarnings(String signatureId)This method retrieve the warnings for a given signature idbooleanisSignatureValid(String signatureId)This method checks if the signature is valid (TOTAL_PASSED)
-
Constructor Details
-
Method Details
-
getValidationTime
This method returns the validation time.- Returns:
- the validation time
-
getIndication
This method returns the indication obtained after the validation of the signature.- Parameters:
signatureId- DSS unique identifier of the signature- Returns:
- the indication for the given signature Id
-
getSubIndication
This method returns the sub-indication obtained after the validation of the signature.- Parameters:
signatureId- DSS unique identifier of the signature- Returns:
- the sub-indication for the given signature Id
-
isSignatureValid
This method checks if the signature is valid (TOTAL_PASSED)- Parameters:
signatureId- the signature id to test- Returns:
- true if the signature Indication element is equals to
Indication.TOTAL_PASSED
-
getSignatureQualification
public eu.europa.esig.dss.enumerations.SignatureQualification getSignatureQualification(String signatureId)Returns the signature type: QES, AdES, AdESqc, NA- Parameters:
signatureId- the signature id to test- Returns:
- the
SignatureQualificationof the given signature
-
getSignatureIdList
This method retrieves the signature ids- Returns:
- the
Listof signature id(s) contained in the simpleReport
-
getFirstSignatureId
This method returns the first signature id.- Returns:
- the first signature id
-
getInfo
This method retrieve the information for a given signature id- Parameters:
signatureId- the signature id- Returns:
- the linked information
-
getErrors
This method retrieve the errors for a given signature id- Parameters:
signatureId- the signature id- Returns:
- the linked errors
-
getWarnings
This method retrieve the warnings for a given signature id- Parameters:
signatureId- the signature id- Returns:
- the linked warnings
-
getSignatureFormat
This method returns the signature format (XAdES_BASELINE_B...)- Parameters:
signatureId- the signature id- Returns:
- the linked signature format
-
getSigningTime
This method returns the signature time- Parameters:
signatureId- the signature id- Returns:
- the signing time
-
getSignedBy
This method returns the signedBy- Parameters:
signatureId- the signature id- Returns:
- the signatory
-
getSignaturesCount
public int getSignaturesCount()This method returns the number of signatures- Returns:
- the number of signatures
-
getValidSignaturesCount
public int getValidSignaturesCount()This method returns the number of valid signatures- Returns:
- the number of valid signatures
-
getJaxbModel
This methods returns the jaxb model of the simple report- Returns:
- the jaxb model
-