Class IntegraFacade


  • public final class IntegraFacade
    extends java.lang.Object

    Class that represents the facade which manages the generation, validation, and upgrade of signatures.

    Project:

    @Firma and TS@ Web Services Integration Platform.

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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] generateCoSignature​(byte[] signature, byte[] signedData, java.security.KeyStore.PrivateKeyEntry privateKey, boolean includeSignaturePolicy, boolean includeTimestamp)
      Method that generates a co-signature.
      static byte[] generateCounterSignature​(byte[] signature, java.security.KeyStore.PrivateKeyEntry privateKey, boolean includeSignaturePolicy, boolean includeTimestamp)
      Method that generates a counter-signature over a signature.
      static byte[] generateMultiSignaturePAdESRubric​(byte[] dataToSign, java.security.KeyStore.PrivateKeyEntry privateKey, boolean includeSignaturePolicy, boolean includeTimestamp, byte[] image, java.lang.String imagePage, int lowerLeftX, int lowerLeftY, int upperRightX, int upperRightY)
      Method that generates a multi-signature with rubric.
      static byte[] generateSignature​(byte[] dataToSign, java.security.KeyStore.PrivateKeyEntry privateKey, boolean includeSignaturePolicy, boolean includeTimestamp)
      Method that generates a signature.
      static byte[] generateSignaturePAdESRubric​(byte[] dataToSign, java.security.KeyStore.PrivateKeyEntry privateKey, boolean includeSignaturePolicy, boolean includeTimestamp, byte[] image, java.lang.String imagePage, int lowerLeftX, int lowerLeftY, int upperRightX, int upperRightY)
      Method that generates a signature with rubric.
      static OriginalSignedData getSignedData​(byte[] signature)
      Method that obtains the data originally signed from a signature.
      static byte[] upgradeSignature​(byte[] signature, java.util.List<java.security.cert.X509Certificate> listSigners)
      Method that upgrades a signature adding a timestamp to all of the signers indicated.
      static java.lang.Object verifySignature​(byte[] signature, byte[] signedData)
      Method that validates the signers of a signature.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait