Class SignatureFormatDetectorASiC

  • All Implemented Interfaces:
    ISignatureFormatDetector

    public final class SignatureFormatDetectorASiC
    extends java.lang.Object
    implements ISignatureFormatDetector

    Class that represents a format checker for Associated Signature Containers (ASiC).

    Project:

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

    Version:
    1.0, 18/01/2016.
    • Field Detail

      • META_INF_FOLDER

        public static final java.lang.String META_INF_FOLDER
        Constant attribute that identifies the root for the signatures and manifests contained inside of an ASiC signature.
        See Also:
        Constant Field Values
      • MIME_TYPE_FILE

        public static final java.lang.String MIME_TYPE_FILE
        Constant attribute that identifies the name of the file with the mime type contained inside of the ZIP file.
        See Also:
        Constant Field Values
      • ASIC_S_MIME_TYPE

        public static final java.lang.String ASIC_S_MIME_TYPE
        Constant attribute that represents the mime type of the ZIP file to identify the ASiC-S format.
        See Also:
        Constant Field Values
      • NAME_SIGNATURE_CADES_B

        public static final java.lang.String NAME_SIGNATURE_CADES_B
        Constant attribute that represents the name of generated CAdES Baseline signature.
        See Also:
        Constant Field Values
      • NAME_SIGNATURE_XADES_B

        public static final java.lang.String NAME_SIGNATURE_XADES_B
        Constant attribute that represents the name of generated XAdES Baseline signature.
        See Also:
        Constant Field Values
    • Method Detail

      • isXAdESEntry

        public static boolean isXAdESEntry​(java.lang.String entryName)
        Method that indicates if the name of an entry of a ZIP file has the format: /META-INF/signature.xml.
        Parameters:
        entryName - Parameter that represents the name of the entry.
        Returns:
        a boolean that indicates if the name of an entry of a ZIP file has the format: /META-INF/signature.xml (true) or not (false).
      • isCAdESEntry

        public static boolean isCAdESEntry​(java.lang.String entryName)
        Method that indicates if the name of an entry of a ZIP file has the format: /META-INF/signature.p7s.
        Parameters:
        entryName - Parameter that represents the name of the entry.
        Returns:
        a boolean that indicates if the name of an entry of a ZIP file has the format: /META-INF/signature.p7s (true) or not (false).