Package org.xwiki.crypto.signer.param
Class CMSSignedDataGeneratorParameters
- java.lang.Object
-
- org.xwiki.crypto.signer.param.CMSSignedDataGeneratorParameters
-
public class CMSSignedDataGeneratorParameters extends Object
Parameters for the generation of SignedData.- Since:
- 6.0M1
- Version:
- $Id: 55687f11d5ea38819ab1d73abf21d9f1ecbe5832 $
-
-
Constructor Summary
Constructors Constructor Description CMSSignedDataGeneratorParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CMSSignedDataGeneratorParameters
addCertificate(CertifiedPublicKey certificate)
Add a certificate.CMSSignedDataGeneratorParameters
addCertificates(Collection<CertifiedPublicKey> certificates)
Add a collection of certificates.CMSSignedDataGeneratorParameters
addSignature(CMSSignerInfo signer)
Add existing signature.CMSSignedDataGeneratorParameters
addSignatures(Collection<CMSSignerInfo> signers)
Add a collection of existing signatures.CMSSignedDataGeneratorParameters
addSigner(CertifyingSigner signer)
Add a new signer.CMSSignedDataGeneratorParameters
addSigners(Collection<CertifyingSigner> signers)
Add a collection of new signers.Collection<CertifiedPublicKey>
getCertificates()
Collection<CMSSignerInfo>
getSignatures()
Collection<CertifyingSigner>
getSigners()
-
-
-
Method Detail
-
addSignature
public CMSSignedDataGeneratorParameters addSignature(CMSSignerInfo signer)
Add existing signature.- Parameters:
signer
- a signer info containing an already calculated signature for the targeted data.- Returns:
- this object for call chaining.
-
addSigner
public CMSSignedDataGeneratorParameters addSigner(CertifyingSigner signer)
Add a new signer.- Parameters:
signer
- a certifying signer to be used to sign the content data.- Returns:
- this object for call chaining.
-
addSignatures
public CMSSignedDataGeneratorParameters addSignatures(Collection<CMSSignerInfo> signers)
Add a collection of existing signatures.- Parameters:
signers
- a collection of signer info containing an already calculated signature for the targeted data.- Returns:
- this object for call chaining.
-
addSigners
public CMSSignedDataGeneratorParameters addSigners(Collection<CertifyingSigner> signers)
Add a collection of new signers.- Parameters:
signers
- a collection of certifying signer to be used to sign the content data.- Returns:
- this object for call chaining.
-
addCertificate
public CMSSignedDataGeneratorParameters addCertificate(CertifiedPublicKey certificate)
Add a certificate.- Parameters:
certificate
- a certificate.- Returns:
- this object for call chaining.
-
addCertificates
public CMSSignedDataGeneratorParameters addCertificates(Collection<CertifiedPublicKey> certificates)
Add a collection of certificates.- Parameters:
certificates
- a collection of certificates to be joined with the signed data.- Returns:
- this object for call chaining.
-
getCertificates
public Collection<CertifiedPublicKey> getCertificates()
- Returns:
- the aggregated collection of certificates to be joined with the signed data.
-
getSignatures
public Collection<CMSSignerInfo> getSignatures()
- Returns:
- the aggregated collection of signer info containing an already calculated signature.
-
getSigners
public Collection<CertifyingSigner> getSigners()
- Returns:
- the aggregated collection of certifying signer to be used to sign the content data.
-
-