Class XAdESSignatureParameters

    • Constructor Detail

      • XAdESSignatureParameters

        public XAdESSignatureParameters()
    • Method Detail

      • setSigningCertificateDigestMethod

        public void setSigningCertificateDigestMethod​(DigestAlgorithm signingCertificateDigestMethod)
        This property is a part of the standard:
        7.2.2 The SigningCertificate element (101 903 V1.4.2 (2010-12) XAdES)
        The digest method indicates the digest algorithm to be used to calculate the CertDigest element that contains the digest for each certificate referenced in the sequence.
        Parameters:
        signingCertificateDigestMethod -
      • getSignedInfoCanonicalizationMethod

        public String getSignedInfoCanonicalizationMethod()
        Returns:
        the canonicalization algorithm to be used when dealing with SignedInfo.
      • setSignedInfoCanonicalizationMethod

        public void setSignedInfoCanonicalizationMethod​(String signedInfoCanonicalizationMethod)
        Set the canonicalization algorithm to be used when dealing with SignedInfo.
        Parameters:
        signedInfoCanonicalizationMethod - the canonicalization algorithm to be used when dealing with SignedInfo.
      • getSignedPropertiesCanonicalizationMethod

        public String getSignedPropertiesCanonicalizationMethod()
        Returns:
        the canonicalization algorithm to be used when dealing with SignedProperties.
      • setSignedPropertiesCanonicalizationMethod

        public void setSignedPropertiesCanonicalizationMethod​(String signedPropertiesCanonicalizationMethod)
        Set the canonicalization algorithm to be used when dealing with SignedProperties.
        Parameters:
        signedPropertiesCanonicalizationMethod - the canonicalization algorithm to be used when dealing with SignedInfo.
      • getKeyInfoCanonicalizationMethod

        public String getKeyInfoCanonicalizationMethod()
        Returns the canonicalization algorithm used for dealing with KeyInfo
        Returns:
        - name of the canonicalization algorithm
      • setKeyInfoCanonicalizationMethod

        public void setKeyInfoCanonicalizationMethod​(String keyInfoCanonicalizationMethod)
        Set the canonicalization algorithm used for dealing with KeyInfo.
        Parameters:
        keyInfoCanonicalizationMethod - - name of the canonicalization algorithm for dealing with KeyInfo.
      • isSignKeyInfo

        public boolean isSignKeyInfo()
        Returns value value specifying if "KeyInfo" element should be signed.
        Returns:
        TRUE if "KeyInfo" element must be signed, FALSE otherwise.
      • setSignKeyInfo

        public void setSignKeyInfo​(boolean signKeyInfo)
        Set the parameter SignKeyInfo defining if the "KeyInfo" element must be signed and its reference must be included to "SignedInfo" element. The value is FALSE by default.
        Parameters:
        signKeyInfo - - if KeyInfo element should be signed
      • getXPathLocationString

        public String getXPathLocationString()
      • setXPathLocationString

        public void setXPathLocationString​(String xPathLocationString)
        Defines the area where the signature will be added (XAdES Enveloped)
        Parameters:
        xPathLocationString - the xpath location of the signature
      • getRootDocument

        public Document getRootDocument()
      • setRootDocument

        public void setRootDocument​(Document rootDocument)
      • isEn319132

        public boolean isEn319132()
      • setEn319132

        public void setEn319132​(boolean en319132)
      • isEmbedXML

        public boolean isEmbedXML()
      • setEmbedXML

        public void setEmbedXML​(boolean embedXML)
      • isManifestSignature

        public boolean isManifestSignature()
      • setManifestSignature

        public void setManifestSignature​(boolean manifestSignature)
      • isAddX509SubjectName

        public boolean isAddX509SubjectName()
      • setAddX509SubjectName

        public void setAddX509SubjectName​(boolean addX509SubjectName)
      • getSignedAdESObject

        public byte[] getSignedAdESObject()
      • setSignedAdESObject

        public void setSignedAdESObject​(byte[] signedAdESObject)
      • isPrettyPrint

        public boolean isPrettyPrint()
      • setPrettyPrint

        public void setPrettyPrint​(boolean prettyPrint)