Class SimpleReport


  • public class SimpleReport
    extends Object
    A SimpleReport holder to fetch values from a JAXB SimpleReport.
    • 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 SignatureQualification of the given signature
      • getSignatureIdList

        public List<String> getSignatureIdList()
        This method retrieves the signature ids
        Returns:
        the List of 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