public class XSAlgorithmIdentifier extends XMLElement
Standard algorithm URI constants can be found in XMLURI, including:
XMLURI.alg_c14nXMLURI.alg_c14nWithCommentsExclusiveXMLURI.alg_exclusiveC14NWithCommentsXMLURI.alg_sha1XMLURI.alg_sha256XMLURI.alg_sha384XMLURI.alg_sha512XMLURI.alg_md5XMLURI.alg_dsaWithSHA1XMLURI.alg_rsaWithSHA1XMLURI.alg_hmacSHA1XMLURI.alg_hmacMD5XMLURI.alg_base64XMLURI.alg_envelopedSignatureXMLURI.alg_xpathXMLURI.alg_xsltXMLURI.alg_decryptBinaryXMLURI.alg_decryptXMLXMLURI.alg_aes128_CBCXMLURI.alg_aes192_CBCXMLURI.alg_aes256_CBCXMLURI.alg_tripleDES_CBCXMLURI.alg_kwAES128XMLURI.alg_kwAES192XMLURI.alg_kwAES256XMLURI.alg_kwTripleDESXMLURI.alg_rsaOAEP_MGF1XMLURI.alg_rsaV15XMLURI.alg_dh| Constructor and Description | 
|---|
XSAlgorithmIdentifier(org.w3c.dom.Document owner, java.lang.String tagName)
Creates a new  
XSAlgorithmIdentifier instance. | 
XSAlgorithmIdentifier(org.w3c.dom.Document owner, java.lang.String tagName, java.lang.String algorithm)
Creates a new  
XSAlgorithmIdentifier instance. | 
XSAlgorithmIdentifier(org.w3c.dom.Document owner, java.lang.String nsURI, java.lang.String tagName, java.lang.String algorithm)
Creates a new  
XSAlgorithmIdentifier instance. | 
XSAlgorithmIdentifier(org.w3c.dom.Element element)
Creates a new  
XSAlgorithmIdentifier instance from the given Element node. | 
XSAlgorithmIdentifier(org.w3c.dom.Element element, java.lang.String systemId)
Creates a new  
XSAlgorithmIdentifier instance from the given Element node. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addParameter(org.w3c.dom.Node param)
Adds an explicit parameter element to this algorithm ID. 
 | 
void | 
addParameter(java.lang.String nsURI, java.lang.String name, java.lang.String value)
Adds an explicit parameter element to this algorithm ID, with the given tag name and text value. 
 | 
java.lang.String | 
getAlgorithm()
Returns the algorithm URI. 
 | 
org.w3c.dom.NodeList | 
getParameters()
Returns a list of the explicit parameter elements for this algorithm ID. 
 | 
void | 
setAlgorithm(java.lang.String algorithm)
Sets the Algorithm attribute for this algorithm ID. 
 | 
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefixappendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML
public XSAlgorithmIdentifier(org.w3c.dom.Element element)
                      throws org.w3c.dom.DOMException
XSAlgorithmIdentifier instance from the given Element node.element - An Element node in the XML document that conforms to the XML-DSIG algorithm identifier schema.org.w3c.dom.DOMException
public XSAlgorithmIdentifier(org.w3c.dom.Element element,
                     java.lang.String systemId)
                      throws org.w3c.dom.DOMException
XSAlgorithmIdentifier instance from the given Element node.element - An Element node in the XML document that conforms to the XML-DSIG algorithm identifier schema.systemId - The URI string system ID for this element.org.w3c.dom.DOMExceptionXMLNode.setSystemId(java.lang.String)
public XSAlgorithmIdentifier(org.w3c.dom.Document owner,
                     java.lang.String tagName)
                      throws org.w3c.dom.DOMException
XSAlgorithmIdentifier instance.owner - The owner document of the new XSAlgorithmIdentifiertagName - The name of the element to be created; for example, "DigestMethod" if this XSAlgorithmIdentifier identifies the digest algorithm in a Signature element.org.w3c.dom.DOMException
public XSAlgorithmIdentifier(org.w3c.dom.Document owner,
                     java.lang.String tagName,
                     java.lang.String algorithm)
                      throws org.w3c.dom.DOMException
XSAlgorithmIdentifier instance.owner - The owner document of the new XSAlgorithmIdentifiertagName - The name of the element to be created; for example, "DigestMethod" if this XSAlgorithmIdentifier identifies the digest algorithm in a Reference element.algorithm - The URI value of the Algorithm attribute.org.w3c.dom.DOMException
public XSAlgorithmIdentifier(org.w3c.dom.Document owner,
                     java.lang.String nsURI,
                     java.lang.String tagName,
                     java.lang.String algorithm)
                      throws org.w3c.dom.DOMException
XSAlgorithmIdentifier instance.owner - The owner document of the new XSAlgorithmIdentifiernsURI - The namespace URI of the element to be created.tagName - The name of the element to be created; for example, "DigestMethod" if this XSAlgorithmIdentifier identifies the digest algorithm in a Reference element.algorithm - The URI value of the Algorithm attribute.org.w3c.dom.DOMException
public void setAlgorithm(java.lang.String algorithm)
                  throws org.w3c.dom.DOMException
algorithm - The URI value of the Algorithm attribute.org.w3c.dom.DOMExceptionpublic java.lang.String getAlgorithm()
null if the attribute is missing.
public void addParameter(org.w3c.dom.Node param)
                  throws org.w3c.dom.DOMException
param - An org.w3c.dom.Node.org.w3c.dom.DOMException
public void addParameter(java.lang.String nsURI,
                java.lang.String name,
                java.lang.String value)
                  throws org.w3c.dom.DOMException
nsURI - The URI of the namespace in which the parameter is to be created.name - The tag name to be used for the new parameter element.value - The text value for the new parameter element.org.w3c.dom.DOMExceptionpublic org.w3c.dom.NodeList getParameters()
NodeList containing any parameter elements in this XSAlgorithmIdentifier.