|
Oracle Security Developer Tools XML Security Java API Reference 11g (11.1.1) E10680-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.xmlsec.util.XMLNode
oracle.security.xmlsec.util.XMLElement
oracle.security.xmlsec.dsig.ReferenceList
oracle.security.xmlsec.dsig.XSSignedInfo
public class XSSignedInfo
XML-DSIG SignedInfo element containing the signature details.
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()
Field Summary |
---|
Fields inherited from class oracle.security.xmlsec.util.XMLNode |
---|
node, systemId |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class oracle.security.xmlsec.dsig.ReferenceList |
---|
addReference, computeRefDigests, getId, getPreDigestedData, getReferences, setId, validateRefDigests |
Methods inherited from class oracle.security.xmlsec.util.XMLNode |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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.
|
Oracle Security Developer Tools XML Security Java API Reference 11g (11.1.1) E10680-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |