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_c14n
XMLURI.alg_c14nWithComments
Exclusive
XMLURI.alg_exclusiveC14NWithComments
The 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_dsaWithSHA1
XMLURI.alg_rsaWithSHA1
XMLURI.alg_hmacSHA1
XMLURI.alg_hmacMD5
XSSignature.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, validateRefDigests
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, setDefaultNSPrefix
appendChild, 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.DOMException
XMLNode.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 XSSignedInfo
org.w3c.dom.DOMException
public XSSignedInfo(org.w3c.dom.Document owner, java.lang.String id)
XSSignedInfo
instance.owner
- The owner document of the new XSSignedInfo
id
- 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 XSSignedInfo
c14nMethod
- 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 XSSignedInfo
c14nMethod
- 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.DOMException
public void setC14NMethod(XSAlgorithmIdentifier c14nMethod) throws org.w3c.dom.DOMException
c14nMethod
- A XSAlgorithmIdentifier
identifying this SignedInfo's canonicalization algorithm.org.w3c.dom.DOMException
public 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.DOMException
public void setSignatureMethod(XSAlgorithmIdentifier signatureMethod) throws org.w3c.dom.DOMException
signatureMethod
- A XSAlgorithmIdentifier
identifying this SignedInfo's signature algorithm.org.w3c.dom.DOMException
public XSAlgorithmIdentifier getSignatureMethod()
XSAlgorithmIdentifier
identifying this SignedInfo's signature algorithm.