Class CustomContentSigner
java.lang.Object
eu.europa.esig.dss.cades.signature.CustomContentSigner
- All Implemented Interfaces:
org.bouncycastle.operator.ContentSigner
public class CustomContentSigner extends Object implements org.bouncycastle.operator.ContentSigner
ContentSigner using a provided pre-computed signature
-
Constructor Summary
Constructors Constructor Description CustomContentSigner(String algorithmIdentifier)The default constructor for thePreComputedContentSigner.CustomContentSigner(String algorithmIdentifier, byte[] preComputedSignature)This is the constructor for thePreComputedContentSignerusing the real value of the signature. -
Method Summary
Modifier and Type Method Description org.bouncycastle.asn1.x509.AlgorithmIdentifiergetAlgorithmIdentifier()ByteArrayOutputStreamgetOutputStream()byte[]getSignature()
-
Constructor Details
-
CustomContentSigner
The default constructor for thePreComputedContentSigner.- Parameters:
algorithmIdentifier-
-
CustomContentSigner
This is the constructor for thePreComputedContentSignerusing the real value of the signature.- Parameters:
algorithmIdentifier- the JCE algorithm identifierpreComputedSignature- the preComputedSignature to set
-
-
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
-