Module org.apache.santuario.xmlsec
Class SignatureProperty
- java.lang.Object
-
- org.apache.xml.security.utils.ElementProxy
-
- org.apache.xml.security.utils.SignatureElementProxy
-
- org.apache.xml.security.signature.SignatureProperty
-
public class SignatureProperty extends SignatureElementProxy
Handles<ds:SignatureProperty>elements Additional information item concerning the generation of the signature(s) can be placed in this Element
-
-
Field Summary
-
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, LOG
-
-
Constructor Summary
Constructors Constructor Description SignatureProperty(Document doc, String target)ConstructsSignaturePropertyusing specifiedtargetattributeSignatureProperty(Document doc, String target, String id)SignatureProperty(Element element, String baseURI)Constructs aSignaturePropertyfrom anElement
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeappendChild(Node node)Method appendChildStringgetBaseLocalName()Returns the localname of the Elements of the sub-class.StringgetId()Returns theidattributeStringgetTarget()Returns thetargetattributevoidsetId(String id)Sets theidattributevoidsetTarget(String target)Sets thetargetattribute-
Methods inherited from class org.apache.xml.security.utils.SignatureElementProxy
getBaseNamespace
-
Methods inherited from class org.apache.xml.security.utils.ElementProxy
addBase64Element, addBase64Text, addBigIntegerElement, addReturnToSelf, addText, addTextElement, appendOther, appendSelf, appendSelf, createElementForFamily, createElementForFamilyLocal, createText, getBaseURI, getBigIntegerFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getFirstChild, getLocalAttribute, getTextFromChildElement, getTextFromTextChild, length, registerDefaultPrefixes, setDefaultPrefix, setDocument, setElement, setElement, setLocalAttribute, setLocalIdAttribute, setXPathNamespaceContext
-
-
-
-
Constructor Detail
-
SignatureProperty
public SignatureProperty(Document doc, String target)
ConstructsSignaturePropertyusing specifiedtargetattribute- Parameters:
doc- theDocumentin whichXMLsignatureis placedtarget- thetargetattribute references theSignatureelement to which the property applies SignatureProperty
-
SignatureProperty
public SignatureProperty(Document doc, String target, String id)
- Parameters:
doc- theDocumentin whichXMLsignatureis placedtarget- thetargetattribute references theSignatureelement to which the property appliesid- theidwill be specified byReference.getURI()in validation
-
SignatureProperty
public SignatureProperty(Element element, String baseURI) throws XMLSecurityException
Constructs aSignaturePropertyfrom anElement- Parameters:
element-SignaturePropertyelementbaseURI- the URI of the resource where the XML instance was stored- Throws:
XMLSecurityException
-
-
Method Detail
-
setId
public void setId(String id)
Sets theidattribute- Parameters:
id- theidattribute
-
getId
public String getId()
Returns theidattribute- Returns:
- the
idattribute
-
setTarget
public void setTarget(String target)
Sets thetargetattribute- Parameters:
target- thetargetattribute
-
getTarget
public String getTarget()
Returns thetargetattribute- Returns:
- the
targetattribute
-
appendChild
public Node appendChild(Node node)
Method appendChild- Parameters:
node-- Returns:
- the node in this element.
-
getBaseLocalName
public String getBaseLocalName()
Returns the localname of the Elements of the sub-class.- Specified by:
getBaseLocalNamein classElementProxy- Returns:
- the localname of the Elements of the sub-class.
-
-