Class SignersFactory


  • public final class SignersFactory
    extends java.lang.Object

    Class that represents a factory used to provide implementations for Signer.

    Project:

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

    Version:
    1.1, 18/04/2022.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static SignersFactory getInstance()
      Method that obtains the unique instance of the class.
      Signer getSigner​(java.lang.String signatureFormat)
      Method that obtains the appropriate implementation of Signer by the signature format.
      java.lang.String toString()
      Method that obtains a list with the supported signature formats.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getInstance

        public static SignersFactory getInstance()
        Method that obtains the unique instance of the class.
        Returns:
        the unique instance of the class.
      • getSigner

        public Signer getSigner​(java.lang.String signatureFormat)
                         throws SigningException
        Method that obtains the appropriate implementation of Signer by the signature format.
        Parameters:
        signatureFormat - Parameter that represents the signature format related to the element to obtain.
        Returns:
        the appropriate implementation of Signer by the signature format.
        Throws:
        SigningException - If the method fails.
      • toString

        public java.lang.String toString()
        Method that obtains a list with the supported signature formats.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a list with the supported signature formats.