public class

PropertiesDataGenerationContext

extends Object
java.lang.Object
   ↳ xades4j.production.PropertiesDataGenerationContext

Class Overview

Context used during the generation of the properties low-level data (property data objects). Contains informations about the algorithms in use and the resources being signed.

See Also
  • PropertiesDataObjectsGenerator

Summary

Public Methods
Element createElementInSignatureDoc(String name, String prefix, String namespace)
Creates a DOM Element in the signature's document.
List<Reference> getReferences()
Gets all the References present in the signature that is being created, except the signed properties reference, in order of appearence within SignedInfo.
Map<DataObjectDesc, Reference> getReferencesMappings()
Gets the mappings from high-level DataObjectDescs to References.
XMLSignature getTargetXmlSignature()
Gets the XML Signature that is being created.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public Element createElementInSignatureDoc (String name, String prefix, String namespace)

Creates a DOM Element in the signature's document. This can be useful when generating GenericDOMData data objects.

Parameters
name the local name of the element
namespace the namespace where the element will be created
Returns
  • the created element

public List<Reference> getReferences ()

Gets all the References present in the signature that is being created, except the signed properties reference, in order of appearence within SignedInfo.

Returns
  • the unmodifiable list of References

public Map<DataObjectDesc, Reference> getReferencesMappings ()

Gets the mappings from high-level DataObjectDescs to References. This should be used when a data object property needs any information from the Reference that corresponds to the data object.

Returns
  • the unmodifiable mapping

public XMLSignature getTargetXmlSignature ()

Gets the XML Signature that is being created. This is only available when generating unisgned properties data objects.

Returns
  • the target signature or null if not yet available