Package es.gob.afirma.signature
Class SignersFactory
- java.lang.Object
-
- es.gob.afirma.signature.SignersFactory
-
public final class SignersFactory extends java.lang.ObjectClass that represents a factory used to provide implementations for
Project:Signer.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 SignersFactorygetInstance()Method that obtains the unique instance of the class.SignergetSigner(java.lang.String signatureFormat)Method that obtains the appropriate implementation ofSignerby the signature format.java.lang.StringtoString()Method that obtains a list with the supported signature formats.
-
-
-
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 ofSignerby the signature format.- Parameters:
signatureFormat- Parameter that represents the signature format related to the element to obtain.- Returns:
- the appropriate implementation of
Signerby 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:
toStringin classjava.lang.Object- Returns:
- a list with the supported signature formats.
-
-