public interface PKCS7Signer extends Signer
| Modifier and Type | Method and Description |
|---|---|
byte[] |
doAttachedSign(byte[] content,
byte[] previewSigned)
Generates a digital co-signature from a content and attaches this content on result file
|
byte[] |
doCounterSign(byte[] previewCMSSignature)
Generates a digital couter-signature
|
byte[] |
doDetachedSign(byte[] content,
byte[] previewSigned)
Generates a digital co-signature from a content,
the result file does not contains the content that was signed
|
byte[] |
doHashCoSign(byte[] hash,
byte[] previewSigned)
Generates a digital co-signature from a previous calculated hash for a content,
and its previous signatures
the result file does not contains the original content that was signed
|
byte[] |
doHashSign(byte[] hash)
Generates a digital signature from a previous calculated hash for a content,
the result file does not contains the original content that was signed
|
void |
setCertificates(Certificate[] certificate)
Assign a Certificate for validate or generate a signature
|
void |
setCertificatesForTimeStamp(Certificate[] certificates)
Assign a Certificate for get timeStamp
|
void |
setSignaturePolicy(PolicyFactory.Policies signaturePolicy)
Assign a Policy for validate or generate a signature
|
doAttachedSign, doDetachedSign, getAlgorithm, getNotAfterSignerCertificate, getPrivateKey, getPrivateKeyForTimeStamp, getProvider, getPublicKey, getSignatory, setAlgorithm, setAlgorithm, setPrivateKey, setPrivateKeyForTimeStamp, setProvider, setPublicKeyvoid setCertificates(Certificate[] certificate)
certificate - certificate to be usedvoid setSignaturePolicy(PolicyFactory.Policies signaturePolicy)
signaturePolicy - Signature policy to be usedbyte[] doDetachedSign(byte[] content,
byte[] previewSigned)
content - content to be signedpreviewSigned - CMS content from preview signedbyte[] doAttachedSign(byte[] content,
byte[] previewSigned)
content - content to be signedpreviewSigned - CMS content from preview signedbyte[] doCounterSign(byte[] previewCMSSignature)
previewCMSSignature - CMS content from preview signedbyte[] doHashSign(byte[] hash)
doHashSign in interface Signerhash - hash to be signedbyte[] doHashCoSign(byte[] hash,
byte[] previewSigned)
hash - hash to be signedpreviewSigned - previous signaturevoid setCertificatesForTimeStamp(Certificate[] certificates)
certificates - certificate to be usedCopyright © 2021 SERPRO - Serviço Federal de Processamento de Dados. All rights reserved.