public class CadesBESParameters extends CMSSignatureParameters
CadesSignature,
CadesSignatureStream| Constructor and Description |
|---|
CadesBESParameters()
Constructor for parameters used for a CAdES-BES signature creation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSignaturePolicyIdentifier(SignaturePolicyIdentifier policyIdentifier)
Adds a signature policy identifier required for a CAdES-EPES signature creation.
|
java.util.Vector<iaik.asn1.structures.Attribute> |
getSignedSignerInfoAttributes(iaik.cms.SignedDataStream signedData,
iaik.cms.SignerInfo signerInfo,
iaik.x509.X509Certificate[] signerCertificateChain)
Return all signed attributes as determined by the respective parameter class.
|
addContentTimestampProps, setContentTimestampPropertiesgetDigestAlgorithm, getSignatureAlgorithm, getUnsignedSignerInfoAttributes, isSigningCertificateAttributeIncluded, setDigestAlgorithm, setSignatureAlgorithmpublic CadesBESParameters()
public void addSignaturePolicyIdentifier(SignaturePolicyIdentifier policyIdentifier)
policyIdentifier - the signature policy identifierpublic java.util.Vector<iaik.asn1.structures.Attribute> getSignedSignerInfoAttributes(iaik.cms.SignedDataStream signedData,
iaik.cms.SignerInfo signerInfo,
iaik.x509.X509Certificate[] signerCertificateChain)
throws CmsCadesException
SignatureParametersgetSignedSignerInfoAttributes in class SignatureParameterssignedData - SignedData object containing the respective signer infosignerInfo - the corresponding SignerInfo objectsignerCertificateChain - used certificate chain for the corresponding signer infoCmsCadesException - if an attribute can't be created