Class XMLSignatureLocation
java.lang.Object
se.idsec.signservice.integration.document.xml.XMLSignatureLocation
- All Implemented Interfaces:
Serializable
,Extensible
Tells where in an XML document the signature should be inserted. The default is to add it as the last child of the
document root element.
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enum for indicating the insertion point within a selected parent node.static class
Builder forXMLSignatureLocation
objects. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.XMLSignatureLocation
(String childPosition, String xPath, Extension extension) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the indicator for first or last child of a selected parent node.Returns the extension parameters for the instance.getxPath()
Gets the XPath expression for selecting the parent node (ornull
which means the parent node is the document root element).void
setChildPosition
(String childPosition) Sets the position in the selected parent node where the signature element should be installed (first or last).void
setChildPosition
(XMLSignatureLocation.ChildPosition childPosition) Sets the position in the selected parent node where the signature element should be installed (first or last).void
setExtension
(Extension extension) Assigns the extension parameters for the instance.void
Assigns the XPath expression for selecting the parent node (ornull
which means the parent node is the document root element).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface se.idsec.signservice.integration.core.Extensible
addExtensionValue, getExtensionValue
-
Constructor Details
-
XMLSignatureLocation
public XMLSignatureLocation()Default constructor. -
XMLSignatureLocation
Constructor.- Parameters:
childPosition
- indicator for first or last child of a selected parent nodexPath
- the XPath expression for selecting the parent nodeextension
- extensions for the object
-
-
Method Details
-
getChildPosition
Gets the indicator for first or last child of a selected parent node.- Returns:
- the position (first of last)
-
setChildPosition
Sets the position in the selected parent node where the signature element should be installed (first or last). The default is "last".- Parameters:
childPosition
- the position
-
setChildPosition
Sets the position in the selected parent node where the signature element should be installed (first or last). The default is "last".- Parameters:
childPosition
- the position
-
getxPath
Gets the XPath expression for selecting the parent node (ornull
which means the parent node is the document root element).- Returns:
- the XPath expression for locating the parent node of the Signature element
-
setxPath
Assigns the XPath expression for selecting the parent node (ornull
which means the parent node is the document root element).- Parameters:
xPath
- the XPath expression for locating the parent node of the Signature element
-
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 extension parameters for the instance.- Specified by:
setExtension
in interfaceExtensible
- Parameters:
extension
- the extension
-