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:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the ETSI AdES type.Gets the AdES object as a Base64-encoded byte array.Returns the extension parameters for the instance.Gets the signature policy (required for EPES).voidsetAdesFormat(TbsDocument.AdesType adesFormat) Assigns the ETSI AdES type.voidsetAdesObject(String adesObject) Assigns the AdES object as a Base64-encoded byte array.voidsetExtension(Extension extension) Assigns the extensions for the object.voidsetSignaturePolicy(String signaturePolicy) Assigns the signature policy (required for EPES).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface se.idsec.signservice.integration.core.Extensible
addExtensionValue, getExtensionValue
-
Constructor Details
-
EtsiAdesRequirement
public EtsiAdesRequirement()
-
-
Method Details
-
getAdesFormat
Gets the ETSI AdES type.- Returns:
- the format
-
setAdesFormat
Assigns the ETSI AdES type.- Parameters:
adesFormat- the format
-
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
SignaturePolicyIdentifierelement.- Returns:
- the signature policy
-
setSignaturePolicy
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
SignaturePolicyIdentifierelement.- Parameters:
signaturePolicy- the signature policy
-
getAdesObject
Gets the AdES object as a Base64-encoded byte array.For XML signatures this object must be a
ds:Objecthaving as its only child axades:QualifyingPropertieselement.- Returns:
- the AdES object or null
-
setAdesObject
Assigns the AdES object as a Base64-encoded byte array.For XML signatures this object must be a
ds:Objecthaving as its only child axades:QualifyingPropertieselement.- Parameters:
adesObject- the AdES object
-
getExtension
Returns the extension parameters for the instance.- Specified by:
getExtensionin interfaceExtensible- Returns:
- the extension, or
nullif no extensions are set
-
setExtension
Assigns the extensions for the object.- Specified by:
setExtensionin interfaceExtensible- Parameters:
extension- the extensions for this object
-