Class CAdESSignatureParameters
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CAdESCounterSignatureParameters
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CAdESTimestampParametersprotected CAdESTimestampParametersprotected eu.europa.esig.dss.signature.ProfileParametersprotected CAdESTimestampParameters -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor instantiating object with null values -
Method Summary
Modifier and TypeMethodDescriptioneu.europa.esig.dss.model.BLevelParametersbLevel()booleanList<eu.europa.esig.dss.model.x509.CertificateToken> Gets content hints descriptionGets content hints typeETSI TS 101 733 V2.2.1 (2013-04)ETSI TS 101 733 V2.2.1 (2013-04)List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> eu.europa.esig.dss.signature.ProfileParametersList<eu.europa.esig.dss.model.DSSDocument> eu.europa.esig.dss.enumerations.DigestAlgorithmeu.europa.esig.dss.enumerations.EncryptionAlgorithmeu.europa.esig.dss.enumerations.DigestAlgorithmeu.europa.esig.dss.enumerations.SignatureAlgorithmeu.europa.esig.dss.enumerations.SignatureLeveleu.europa.esig.dss.enumerations.SignaturePackagingbyte[]eu.europa.esig.dss.model.x509.CertificateTokeneu.europa.esig.dss.enumerations.ValidationDataEncapsulationStrategyinthashCode()booleanbooleanReturns if the signature shall be created according to ETSI EN 319 122booleanbooleanReturns whether a parallel signature should be created when an original document is represented by a CMSSignedData (i.e. another CMS signature document)voidreinit()voidvoidsetBLevelParams(eu.europa.esig.dss.model.BLevelParameters arg0) voidsetCertificateChain(eu.europa.esig.dss.model.x509.CertificateToken... arg0) voidsetCertificateChain(List<eu.europa.esig.dss.model.x509.CertificateToken> arg0) voidsetCheckCertificateRevocation(boolean arg0) voidsetContentHintsDescription(String contentHintsDescription) Sets content hints descriptionvoidsetContentHintsType(String contentHintsType) Sets content hints typevoidsetContentIdentifierPrefix(String contentIdentifierPrefix) Sets content identifier prefixvoidsetContentIdentifierSuffix(String contentIdentifierSuffix) Sets content identifier suffix.voidvoidsetContentTimestamps(List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> arg0) voidsetDetachedContents(List<eu.europa.esig.dss.model.DSSDocument> arg0) voidsetDigestAlgorithm(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) voidsetEn319122(boolean en319122) Sets if the signature shall be created according to ETSI EN 319 122, otherwise will be created with respect to the old standardvoidsetEncryptionAlgorithm(eu.europa.esig.dss.enumerations.EncryptionAlgorithm arg0) voidsetGenerateTBSWithoutCertificate(boolean arg0) voidsetParallelSignature(boolean parallelSignature) Sets whether a parallel signature should be created in case the provided documentToSign is represented by a CMSSignedData (i.e. another CMS signature document).voidsetReferenceDigestAlgorithm(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) voidsetSignatureLevel(eu.europa.esig.dss.enumerations.SignatureLevel arg0) voidsetSignaturePackaging(eu.europa.esig.dss.enumerations.SignaturePackaging arg0) voidvoidsetSignedData(byte[] arg0) voidsetSigningCertificate(eu.europa.esig.dss.model.x509.CertificateToken arg0) voidsetValidationDataEncapsulationStrategy(eu.europa.esig.dss.enumerations.ValidationDataEncapsulationStrategy arg0) toString()
-
Field Details
-
context
protected eu.europa.esig.dss.signature.ProfileParameters context -
contentTimestampParameters
-
signatureTimestampParameters
-
archiveTimestampParameters
-
-
Constructor Details
-
CAdESSignatureParameters
public CAdESSignatureParameters()Default constructor instantiating object with null values
-
-
Method Details
-
isEn319122
public boolean isEn319122()Returns if the signature shall be created according to ETSI EN 319 122- Returns:
- TRUE if the signature shall be created according to ETSI EN 319 122, otherwise as an old format
-
setEn319122
public void setEn319122(boolean en319122) Sets if the signature shall be created according to ETSI EN 319 122, otherwise will be created with respect to the old standardDefault: true
- Parameters:
en319122- if the signature shall be created according to ETSI EN 319 122
-
getContentHintsType
-
setContentHintsType
-
getContentHintsDescription
-
setContentHintsDescription
-
getContentIdentifierSuffix
ETSI TS 101 733 V2.2.1 (2013-04)5.10.2 content-identifier Attribute The content-identifier attribute provides an identifier for the signed content, for use when a reference may be later required to that content; for example, in the content-reference attribute in other signed data sent later. The content-identifier shall be a signed attribute. content-identifier attribute type values for the ES have an ASN.1 type ContentIdentifier, as defined in ESS (RFC 2634 [5]).
The minimal content-identifier attribute should contain a concatenation of user-specific identification information (such as a user name or public keying material identification information), a GeneralizedTime string, and a random number.
- Returns:
String
-
setContentIdentifierSuffix
-
getContentIdentifierPrefix
ETSI TS 101 733 V2.2.1 (2013-04)5.10.2 content-identifier Attribute The content-identifier attribute provides an identifier for the signed content, for use when a reference may be later required to that content; for example, in the content-reference attribute in other signed data sent later. The content-identifier shall be a signed attribute. content-identifier attribute type values for the ES have an ASN.1 type ContentIdentifier, as defined in ESS (RFC 2634 [5]).
The minimal content-identifier attribute should contain a concatenation of user-specific identification information (such as a user name or public keying material identification information), a GeneralizedTime string, and a random number.
- Returns:
String
-
setContentIdentifierPrefix
-
isParallelSignature
public boolean isParallelSignature()Returns whether a parallel signature should be created when an original document is represented by a CMSSignedData (i.e. another CMS signature document)- Returns:
- whether a parallel signing is expected
-
setParallelSignature
public void setParallelSignature(boolean parallelSignature) Sets whether a parallel signature should be created in case the provided documentToSign is represented by a CMSSignedData (i.e. another CMS signature document). When enabled, the created produced document will be build based on the original CMSSignedData content, and the new signature will be included inside the CMSSignedData as a parallel signature, next to existing signatures. When disabled, the new signature will cover the binaries of the original CMSSignedData, as in case of a not-signed original document. This allows creation of nested CMS signatures. When a non CMSSignedData document is provided, the parameter does not impact the processing. Default : TRUE (creates a parallel signature, when applicable)- Parameters:
parallelSignature- whether a parallel signature should be created in case the provided documentToSign is represented by a CMSSignedData
-
getContentTimestampParameters
-
getSignatureTimestampParameters
-
getArchiveTimestampParameters
-
toString
-
equals
-
hashCode
public int hashCode() -
getContentTimestamps
-
setContentTimestamps
-
getDetachedContents
-
setDetachedContents
-
getSigningCertificate
public eu.europa.esig.dss.model.x509.CertificateToken getSigningCertificate() -
setSigningCertificate
public void setSigningCertificate(eu.europa.esig.dss.model.x509.CertificateToken arg0) -
getSignedData
public byte[] getSignedData() -
setSignedData
public void setSignedData(byte[] arg0) -
getCertificateChain
-
setCertificateChain
-
setCertificateChain
public void setCertificateChain(eu.europa.esig.dss.model.x509.CertificateToken... arg0) -
getDeterministicId
-
getContext
public eu.europa.esig.dss.signature.ProfileParameters getContext() -
reinit
public void reinit() -
isCheckCertificateRevocation
public boolean isCheckCertificateRevocation() -
setCheckCertificateRevocation
public void setCheckCertificateRevocation(boolean arg0) -
isGenerateTBSWithoutCertificate
public boolean isGenerateTBSWithoutCertificate() -
setGenerateTBSWithoutCertificate
public void setGenerateTBSWithoutCertificate(boolean arg0) -
getSignatureLevel
public eu.europa.esig.dss.enumerations.SignatureLevel getSignatureLevel() -
setSignatureLevel
public void setSignatureLevel(eu.europa.esig.dss.enumerations.SignatureLevel arg0) -
getSignaturePackaging
public eu.europa.esig.dss.enumerations.SignaturePackaging getSignaturePackaging() -
setSignaturePackaging
public void setSignaturePackaging(eu.europa.esig.dss.enumerations.SignaturePackaging arg0) -
getDigestAlgorithm
public eu.europa.esig.dss.enumerations.DigestAlgorithm getDigestAlgorithm() -
setDigestAlgorithm
public void setDigestAlgorithm(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) -
getEncryptionAlgorithm
public eu.europa.esig.dss.enumerations.EncryptionAlgorithm getEncryptionAlgorithm() -
setEncryptionAlgorithm
public void setEncryptionAlgorithm(eu.europa.esig.dss.enumerations.EncryptionAlgorithm arg0) -
getSignatureAlgorithm
public eu.europa.esig.dss.enumerations.SignatureAlgorithm getSignatureAlgorithm() -
getReferenceDigestAlgorithm
public eu.europa.esig.dss.enumerations.DigestAlgorithm getReferenceDigestAlgorithm() -
setReferenceDigestAlgorithm
public void setReferenceDigestAlgorithm(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) -
bLevel
public eu.europa.esig.dss.model.BLevelParameters bLevel() -
setBLevelParams
public void setBLevelParams(eu.europa.esig.dss.model.BLevelParameters arg0) -
getValidationDataEncapsulationStrategy
public eu.europa.esig.dss.enumerations.ValidationDataEncapsulationStrategy getValidationDataEncapsulationStrategy() -
setValidationDataEncapsulationStrategy
public void setValidationDataEncapsulationStrategy(eu.europa.esig.dss.enumerations.ValidationDataEncapsulationStrategy arg0) -
setContentTimestampParameters
-
setSignatureTimestampParameters
-
setArchiveTimestampParameters
-