Package br.ufsc.labsec.signature.tsa
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 Summary
Constructors Constructor Description FileToBeSignedContentSigner(FileToBeSigned<? extends CadesInformation> fileToBeSigned)
-
Method Summary
Modifier and Type Method Description static org.bouncycastle.operator.DigestCalculator
calculateDigest(FileToBeSigned<? extends CadesInformation> fileToBeSigned)
org.bouncycastle.asn1.x509.AlgorithmIdentifier
getAlgorithmIdentifier()
OutputStream
getOutputStream()
byte[]
getSignature()
static org.bouncycastle.cms.SignerInfoGenerator
signerInfoGenerator(FileToBeSigned<? extends CadesInformation> fileToBeSigned)
-
Constructor Details
-
FileToBeSignedContentSigner
-
-
Method Details
-
getAlgorithmIdentifier
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()- Specified by:
getAlgorithmIdentifier
in interfaceorg.bouncycastle.operator.ContentSigner
-
getOutputStream
- Specified by:
getOutputStream
in interfaceorg.bouncycastle.operator.ContentSigner
-
getSignature
public byte[] getSignature()- Specified by:
getSignature
in interfaceorg.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
-