Class XadesExt


  • public final class XadesExt
    extends XMLAdvancedSignature

    Class that extends XMLAdvancedSignature with new changes:

    • SubjectX500Principal and X509IssuerSerial elements are included in the KeyInfo element.
    • Signature algorithm can be set.
    • Canonicalization algorithm of the signature can be set.
    • Namespace of XAdES can be set.
    Project:

    Library for the integration with the services of @Firma, eVisor and TS@.

    Version:
    1.3, 13/04/2020.
    • Method Detail

      • setCanonicalizationMethod

        public void setCanonicalizationMethod​(java.lang.String canMethod)
        Establece el algoritmo de canonicalización.
        Parameters:
        canMethod - URL del algoritmo de canonicalización. Debe estar soportado en XMLDSig 1.0 ó 1.1
      • isXAdESBaseline

        public boolean isXAdESBaseline()
        Gets the value of the attribute isXAdESBaseline.
        Returns:
        the value of the attribute isXAdESBaseline.
      • setXAdESBaseline

        public void setXAdESBaseline​(boolean isXAdESBaselineParam)
        Sets the value of the attribute isXAdESBaseline.
        Parameters:
        isXAdESBaselineParam - The value for the attribute isXAdESBaseline.
      • newInstance

        public static XadesExt newInstance​(XAdES_BES xades,
                                           boolean isXAdESBaselineParam)
                                    throws java.security.GeneralSecurityException
        Creates a new instance of type XadesExt.
        Parameters:
        xades - data container.
        isXAdESBaselineParam - parameter that indicates XAdES Baseline.
        Returns:
        a new object of type es.gob.afirma.signature.xades.XadesExt
        Throws:
        java.security.GeneralSecurityException - in error case.