Class SignatureFormatDetectorCommons

  • All Implemented Interfaces:
    ISignatureFormatDetector

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

    Class that contains all the functionality related to recognize the signature formats.

    Project:

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

    Version:
    1.2, 04/03/2020.
    • Method Detail

      • isXMLFormat

        public static boolean isXMLFormat​(byte[] signature)
        Method that indicates whether a signature is XML (true) or not (false).
        Parameters:
        signature - Parameter that represents the signature to check.
        Returns:
        a boolean that indicates whether a signature is XML (true) or not (false).
      • isASiCFormat

        public static boolean isASiCFormat​(byte[] signature)
        Method that indicates if a signature has the ASiC-S format (true) or not (false).
        Parameters:
        signature - Parameter that represents a ZIP file.
        Returns:
        a boolean that indicates if the signature has the ASiC-S format (true) or not (false).