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.DigestCalculatorcalculateDigest(FileToBeSigned<? extends CadesInformation> fileToBeSigned)org.bouncycastle.asn1.x509.AlgorithmIdentifiergetAlgorithmIdentifier()OutputStreamgetOutputStream()byte[]getSignature()static org.bouncycastle.cms.SignerInfoGeneratorsignerInfoGenerator(FileToBeSigned<? extends CadesInformation> fileToBeSigned)
-
Constructor Details
-
FileToBeSignedContentSigner
-
-
Method Details
-
getAlgorithmIdentifier
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()- Specified by:
getAlgorithmIdentifierin interfaceorg.bouncycastle.operator.ContentSigner
-
getOutputStream
- Specified by:
getOutputStreamin interfaceorg.bouncycastle.operator.ContentSigner
-
getSignature
public byte[] getSignature()- Specified by:
getSignaturein 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
-