Module org.apache.santuario.xmlsec
Class SignatureProperties
- java.lang.Object
-
- org.apache.xml.security.utils.ElementProxy
-
- org.apache.xml.security.utils.SignatureElementProxy
-
- org.apache.xml.security.signature.SignatureProperties
-
public class SignatureProperties extends SignatureElementProxy
Handles<ds:SignatureProperties>elements This Element holdsSignaturePropertyproperties that contain additional information items concerning the generation of the signature. for example, data-time stamp, serial number of cryptographic hardware.
-
-
Field Summary
-
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, LOG
-
-
Constructor Summary
Constructors Constructor Description SignatureProperties(Document doc)Constructor SignaturePropertiesSignatureProperties(Element element, String baseURI)ConstructsSignaturePropertiesfromElement
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSignatureProperty(SignatureProperty sp)Method addSignaturePropertyStringgetBaseLocalName()Returns the localname of the Elements of the sub-class.StringgetId()Returns theIdattributeintgetLength()Return the nonnegative number of added SignatureProperty elements.SignaturePropertyitem(int i)Return the ith SignatureProperty.voidsetId(String Id)Sets theIdattribute-
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
-
SignatureProperties
public SignatureProperties(Document doc)
Constructor SignatureProperties- Parameters:
doc-
-
SignatureProperties
public SignatureProperties(Element element, String baseURI) throws XMLSecurityException
ConstructsSignaturePropertiesfromElement- Parameters:
element-SignaturePropertieselementbaseURI- the URI of the resource where the XML instance was stored- Throws:
XMLSecurityException
-
-
Method Detail
-
getLength
public int getLength()
Return the nonnegative number of added SignatureProperty elements.- Returns:
- the number of SignatureProperty elements
-
item
public SignatureProperty item(int i) throws XMLSignatureException
Return the ith SignatureProperty. Validivalues are 0 to{link@ getSize}-1.- Parameters:
i- Index of the requestedSignatureProperty- Returns:
- the ith SignatureProperty
- Throws:
XMLSignatureException
-
setId
public void setId(String Id)
Sets theIdattribute- Parameters:
Id- theIdattribute
-
getId
public String getId()
Returns theIdattribute- Returns:
- the
Idattribute
-
addSignatureProperty
public void addSignatureProperty(SignatureProperty sp)
Method addSignatureProperty- Parameters:
sp-
-
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.
-
-