Class CAdESSignatureParameters

java.lang.Object
eu.europa.esig.dss.model.AbstractSerializableSignatureParameters<TP>
eu.europa.esig.dss.AbstractSignatureParameters<CAdESTimestampParameters>
eu.europa.esig.dss.cades.CAdESSignatureParameters
All Implemented Interfaces:
eu.europa.esig.dss.model.SerializableSignatureParameters, Serializable
Direct Known Subclasses:
CAdESCounterSignatureParameters

public class CAdESSignatureParameters extends eu.europa.esig.dss.AbstractSignatureParameters<CAdESTimestampParameters>
Defines SignatureParameters to deal with CAdES signature creation/extension
See Also:
  • Field Summary

    Fields inherited from class eu.europa.esig.dss.AbstractSignatureParameters

    context

    Fields inherited from class eu.europa.esig.dss.model.AbstractSerializableSignatureParameters

    archiveTimestampParameters, contentTimestampParameters, signatureTimestampParameters
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor instantiating object with null values
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Gets content hints description
    Gets content hints type
    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.
    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.
     
     
    boolean
    Returns if the signature shall be created according to ETSI EN 319 122
    void
    setContentHintsDescription(String contentHintsDescription)
    Sets content hints description
    void
    setContentHintsType(String contentHintsType)
    Sets content hints type
    void
    setContentIdentifierPrefix(String contentIdentifierPrefix)
    Sets content identifier prefix
    void
    setContentIdentifierSuffix(String contentIdentifierSuffix)
    Sets content identifier suffix.
    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 standard Default: true

    Methods inherited from class eu.europa.esig.dss.AbstractSignatureParameters

    getCertificateChain, getContentTimestamps, getContext, getDetachedContents, getDeterministicId, getSignedData, getSigningCertificate, reinit, setCertificateChain, setCertificateChain, setContentTimestamps, setDetachedContents, setSignedData, setSigningCertificate

    Methods inherited from class eu.europa.esig.dss.model.AbstractSerializableSignatureParameters

    bLevel, equals, getDigestAlgorithm, getEncryptionAlgorithm, getMaskGenerationFunction, getReferenceDigestAlgorithm, getSignatureAlgorithm, getSignatureLevel, getSignaturePackaging, hashCode, isCheckCertificateRevocation, isGenerateTBSWithoutCertificate, isSignWithExpiredCertificate, isSignWithNotYetValidCertificate, setArchiveTimestampParameters, setBLevelParams, setCheckCertificateRevocation, setContentTimestampParameters, setDigestAlgorithm, setEncryptionAlgorithm, setGenerateTBSWithoutCertificate, setMaskGenerationFunction, setReferenceDigestAlgorithm, setSignatureLevel, setSignaturePackaging, setSignatureTimestampParameters, setSignWithExpiredCertificate, setSignWithNotYetValidCertificate, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 standard Default: true
      Parameters:
      en319122 - if the signature shall be created according to ETSI EN 319 122
    • getContentHintsType

      public String getContentHintsType()
      Gets content hints type
      Returns:
      String
    • setContentHintsType

      public void setContentHintsType(String contentHintsType)
      Sets content hints type
      Parameters:
      contentHintsType - String
    • getContentHintsDescription

      public String getContentHintsDescription()
      Gets content hints description
      Returns:
      String
    • setContentHintsDescription

      public void setContentHintsDescription(String contentHintsDescription)
      Sets content hints description
      Parameters:
      contentHintsDescription - String
    • getContentIdentifierSuffix

      public String 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

      public void setContentIdentifierSuffix(String contentIdentifierSuffix)
      Sets content identifier suffix. NOTE: THIS VALUE WILL BE SET AUTOMATICALLY IF LEFT BLANK
      Parameters:
      contentIdentifierSuffix - String
      See Also:
    • getContentIdentifierPrefix

      public String 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

      public void setContentIdentifierPrefix(String contentIdentifierPrefix)
      Sets content identifier prefix
      Parameters:
      contentIdentifierPrefix - String
      See Also:
    • getContentTimestampParameters

      public CAdESTimestampParameters getContentTimestampParameters()
      Overrides:
      getContentTimestampParameters in class eu.europa.esig.dss.model.AbstractSerializableSignatureParameters<CAdESTimestampParameters>
    • getSignatureTimestampParameters

      public CAdESTimestampParameters getSignatureTimestampParameters()
      Overrides:
      getSignatureTimestampParameters in class eu.europa.esig.dss.model.AbstractSerializableSignatureParameters<CAdESTimestampParameters>
    • getArchiveTimestampParameters

      public CAdESTimestampParameters getArchiveTimestampParameters()
      Overrides:
      getArchiveTimestampParameters in class eu.europa.esig.dss.model.AbstractSerializableSignatureParameters<CAdESTimestampParameters>