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
-
Constructor Summary
ConstructorDescriptionEtsiAdesRequirement
(TbsDocument.AdesType adesFormat, String signaturePolicy, String adesObject, Extension extension) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Gets the ETSI AdES type.Gets the AdES object as an Base64-encoded byte array.Returns the extension parameters for the instance.Gets the signature policy (required for EPES).void
setAdesFormat
(TbsDocument.AdesType adesFormat) Assigns the ETSI AdES type.void
setAdesObject
(String adesObject) Assigns the AdES object as an Base64-encoded byte array.void
setExtension
(Extension extension) Assigns the extensions for the object.void
setSignaturePolicy
(String signaturePolicy) Assigns the signature policy (required for EPES).toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface se.idsec.signservice.integration.core.Extensible
addExtensionValue, getExtensionValue
-
Constructor Details
-
EtsiAdesRequirement
public EtsiAdesRequirement() -
EtsiAdesRequirement
public EtsiAdesRequirement(TbsDocument.AdesType adesFormat, String signaturePolicy, String adesObject, Extension extension)
-
-
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
SignaturePolicyIdentifier
element.- 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
SignaturePolicyIdentifier
element.- Parameters:
signaturePolicy
- the signature policy
-
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 axades:QualifyingProperties
element.- Returns:
- the AdES object or null
-
setAdesObject
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 axades:QualifyingProperties
element.- Parameters:
adesObject
- the AdES object
-
getExtension
Returns the extension parameters for the instance.- Specified by:
getExtension
in interfaceExtensible
- Returns:
- the extension, or
null
if no extensions are set
-
setExtension
Assigns the extensions for the object.- Specified by:
setExtension
in interfaceExtensible
- Parameters:
extension
- the extensions for this object
-
builder
-
toString
-