public class XSSignedInfo extends ReferenceList
The SignedInfo's CanonicalizationMethod identifies the algorithm to be used for serializing the SignedInfo to octets prior to applying the signature algorithm. Standard canonicalization algorithm URI constants can be found in XMLURI, including:
XMLURI.alg_c14nXMLURI.alg_c14nWithCommentsExclusiveXMLURI.alg_exclusiveC14NWithCommentsThe SignedInfo's SignatureMethod identifies the algorithm to be used for computing the digital signature over the SignedInfo's canonicalized octets. Standard signature algorithm URI constants can be found in XMLURI, including:
XMLURI.alg_dsaWithSHA1XMLURI.alg_rsaWithSHA1XMLURI.alg_hmacSHA1XMLURI.alg_hmacMD5XSSignature.createSignedInfo()| Constructor and Description | 
|---|
XSSignedInfo(org.w3c.dom.Document owner)
Create a new  
XSSignedInfo instance. | 
XSSignedInfo(org.w3c.dom.Document owner, java.lang.String id)
Create a new  
XSSignedInfo instance. | 
XSSignedInfo(org.w3c.dom.Document owner, java.lang.String c14nMethod, java.lang.String signatureMethod)
Create a new  
XSSignedInfo instance. | 
XSSignedInfo(org.w3c.dom.Document owner, java.lang.String c14nMethod, java.lang.String signatureMethod, java.lang.String id)
Create a new  
XSSignedInfo instance. | 
XSSignedInfo(org.w3c.dom.Element element)
Creates a new  
XSSignedInfo instance. | 
XSSignedInfo(org.w3c.dom.Element element, java.lang.String systemId)
Creates a new  
XSSignedInfo instance. | 
| Modifier and Type | Method and Description | 
|---|---|
XSAlgorithmIdentifier | 
getC14NMethod()
Returns the CanonicalizationMethod element for this SignedInfo. 
 | 
XSAlgorithmIdentifier | 
getSignatureMethod()
Returns the SignatureMethod element for this SignedInfo. 
 | 
void | 
setC14NMethod(java.lang.String c14nMethod)
Sets the CanonicalizationMethod element for this SignedInfo, replacing any existing CanonicalizationMethod. 
 | 
void | 
setC14NMethod(XSAlgorithmIdentifier c14nMethod)
Sets the CanonicalizationMethod element for this SignedInfo, replacing any existing CanonicalizationMethod. 
 | 
void | 
setSignatureMethod(java.lang.String signatureMethod)
Sets the SignatureMethod element for this SignedInfo, replacing any existing SignatureMethod. 
 | 
void | 
setSignatureMethod(XSAlgorithmIdentifier signatureMethod)
Sets the SignatureMethod element for this SignedInfo, replacing any existing SignatureMethod. 
 | 
addReference, computeRefDigests, getId, getPreDigestedData, getReferences, getSignatureDetails, getValidationErrorMessage, setId, validateRefDigestsaddNSPrefixAttr, 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 XSSignedInfo(org.w3c.dom.Element element)
             throws org.w3c.dom.DOMException
XSSignedInfo instance. from the given Element node.element - An Element node in the XML document that conforms to the XML-DSIG SignedInfo schema.org.w3c.dom.DOMException
public XSSignedInfo(org.w3c.dom.Element element,
            java.lang.String systemId)
             throws org.w3c.dom.DOMException
XSSignedInfo instance. from the given Element node.element - An Element node in the XML document that conforms to the XML-DSIG SignedInfo schema.systemId - The URI string system ID for this element.org.w3c.dom.DOMExceptionXMLNode.setSystemId(java.lang.String)
public XSSignedInfo(org.w3c.dom.Document owner)
             throws org.w3c.dom.DOMException
XSSignedInfo instance.owner - The owner document of the new XSSignedInfoorg.w3c.dom.DOMException
public XSSignedInfo(org.w3c.dom.Document owner,
            java.lang.String id)
XSSignedInfo instance.owner - The owner document of the new XSSignedInfoid - An optional string ID name for this SignedInfo structure.
public XSSignedInfo(org.w3c.dom.Document owner,
            java.lang.String c14nMethod,
            java.lang.String signatureMethod)
XSSignedInfo instance.owner - The owner document of the new XSSignedInfoc14nMethod - The URI identifying the canonicalization method to be applied to the SignedInfo structure.signatureMethod - The URI identifying the signature algorithm to be used to sign the SignedInfo structure.
public XSSignedInfo(org.w3c.dom.Document owner,
            java.lang.String c14nMethod,
            java.lang.String signatureMethod,
            java.lang.String id)
XSSignedInfo instance.owner - The owner document of the new XSSignedInfoc14nMethod - The URI identifying the canonicalization method to be applied to the SignedInfo structure.signatureMethod - The URI identifying the signature algorithm to be used to sign the SignedInfo structure.id - An optional string ID name for this SignedInfo structure.
public void setC14NMethod(java.lang.String c14nMethod)
                   throws org.w3c.dom.DOMException
c14nMethod - The URI identifying this SignedInfo's canonicalization algorithm.org.w3c.dom.DOMExceptionpublic void setC14NMethod(XSAlgorithmIdentifier c14nMethod) throws org.w3c.dom.DOMException
c14nMethod - A XSAlgorithmIdentifier identifying this SignedInfo's canonicalization algorithm.org.w3c.dom.DOMExceptionpublic XSAlgorithmIdentifier getC14NMethod()
XSAlgorithmIdentifier identifying this SignedInfo's canonicalization algorithm.
public void setSignatureMethod(java.lang.String signatureMethod)
                        throws org.w3c.dom.DOMException
signatureMethod - The URI identifying this SignedInfo's signature algorithm.org.w3c.dom.DOMExceptionpublic void setSignatureMethod(XSAlgorithmIdentifier signatureMethod) throws org.w3c.dom.DOMException
signatureMethod - A XSAlgorithmIdentifier identifying this SignedInfo's signature algorithm.org.w3c.dom.DOMExceptionpublic XSAlgorithmIdentifier getSignatureMethod()
XSAlgorithmIdentifier identifying this SignedInfo's signature algorithm.