Class TbsDocument.EtsiAdesRequirement

java.lang.Object
se.idsec.signservice.integration.document.TbsDocument.EtsiAdesRequirement
All Implemented Interfaces:
Serializable, Extensible
Enclosing class:
TbsDocument

public static class TbsDocument.EtsiAdesRequirement extends Object implements Extensible, Serializable
Representation of an ETSI AdES signature requirement.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
See Also:
  • Constructor Details

  • Method Details

    • getAdesFormat

      public TbsDocument.AdesType getAdesFormat()
      Gets the ETSI AdES type.
      Returns:
      the format
    • setAdesFormat

      public void setAdesFormat(TbsDocument.AdesType adesFormat)
      Assigns the ETSI AdES type.
      Parameters:
      adesFormat - the format
    • getSignaturePolicy

      public String getSignaturePolicy()
      Gets the signature policy (required for EPES).

      When signing an XML document, this fields can be left unset if the AdES object is set, and this element contains a SignaturePolicyIdentifier element.

      Returns:
      the signature policy
    • setSignaturePolicy

      public void setSignaturePolicy(String signaturePolicy)
      Assigns the signature policy (required for EPES).

      When signing an XML document, this fields can be left unset if the AdES object is set, and this element contains a SignaturePolicyIdentifier element.

      Parameters:
      signaturePolicy - the signature policy
    • getAdesObject

      public String getAdesObject()
      Gets the AdES object as an Base64-encoded byte array.

      For XML signatures this object must be a ds:Object having as its only child a xades:QualifyingProperties element.

      Returns:
      the AdES object or null
    • setAdesObject

      public void setAdesObject(String adesObject)
      Assigns the AdES object as an Base64-encoded byte array.

      For XML signatures this object must be a ds:Object having as its only child a xades:QualifyingProperties element.

      Parameters:
      adesObject - the AdES object
    • getExtension

      public Extension getExtension()
      Returns the extension parameters for the instance.
      Specified by:
      getExtension in interface Extensible
      Returns:
      the extension, or null if no extensions are set
    • setExtension

      public void setExtension(Extension extension)
      Assigns the extensions for the object.
      Specified by:
      setExtension in interface Extensible
      Parameters:
      extension - the extensions for this object
    • builder

    • toString

      public String toString()
      Overrides:
      toString in class Object