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.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 reportSignatureLevelgetSignatureFormat(String signatureId)This method returns the signature format (XAdES_BASELINE_B...)List<String>getSignatureIdList()This method retrieves the signature idsSignatureQualificationgetSignatureQualification(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 timeSubIndicationgetSubIndication(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 Detail
-
SimpleReport
public SimpleReport(XmlSimpleReport wrapped)
-
-
Method Detail
-
getValidationTime
public Date getValidationTime()
This method returns the validation time.- Returns:
- the validation time
-
getIndication
public Indication getIndication(String signatureId)
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
public SubIndication getSubIndication(String signatureId)
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
public boolean isSignatureValid(String signatureId)
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 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
public List<String> getSignatureIdList()
This method retrieves the signature ids- Returns:
- the
Listof signature id(s) contained in the simpleReport
-
getFirstSignatureId
public String getFirstSignatureId()
This method returns the first signature id.- Returns:
- the first signature id
-
getInfo
public List<String> getInfo(String signatureId)
This method retrieve the information for a given signature id- Parameters:
signatureId- the signature id- Returns:
- the linked information
-
getErrors
public List<String> getErrors(String signatureId)
This method retrieve the errors for a given signature id- Parameters:
signatureId- the signature id- Returns:
- the linked errors
-
getWarnings
public List<String> getWarnings(String signatureId)
This method retrieve the warnings for a given signature id- Parameters:
signatureId- the signature id- Returns:
- the linked warnings
-
getSignatureFormat
public SignatureLevel getSignatureFormat(String signatureId)
This method returns the signature format (XAdES_BASELINE_B...)- Parameters:
signatureId- the signature id- Returns:
- the linked signature format
-
getSigningTime
public Date getSigningTime(String signatureId)
This method returns the signature time- Parameters:
signatureId- the signature id- Returns:
- the signing time
-
getSignedBy
public String getSignedBy(String signatureId)
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
public XmlSimpleReport getJaxbModel()
This methods returns the jaxb model of the simple report- Returns:
- the jaxb model
-
-