Class FileToBeSignedContentSigner

java.lang.Object
br.ufsc.labsec.signature.tsa.FileToBeSignedContentSigner
All Implemented Interfaces:
org.bouncycastle.operator.ContentSigner

public class FileToBeSignedContentSigner
extends Object
implements org.bouncycastle.operator.ContentSigner
  • Constructor Details

  • Method Details

    • getAlgorithmIdentifier

      public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()
      Specified by:
      getAlgorithmIdentifier in interface org.bouncycastle.operator.ContentSigner
    • getOutputStream

      public OutputStream getOutputStream()
      Specified by:
      getOutputStream in interface org.bouncycastle.operator.ContentSigner
    • getSignature

      public byte[] getSignature()
      Specified by:
      getSignature in interface org.bouncycastle.operator.ContentSigner
    • signerInfoGenerator

      public static org.bouncycastle.cms.SignerInfoGenerator signerInfoGenerator​(FileToBeSigned<? extends CadesInformation> fileToBeSigned) throws UserCertificateException
      Throws:
      UserCertificateException
    • calculateDigest

      public static org.bouncycastle.operator.DigestCalculator calculateDigest​(FileToBeSigned<? extends CadesInformation> fileToBeSigned) throws org.bouncycastle.operator.OperatorCreationException
      Throws:
      org.bouncycastle.operator.OperatorCreationException