|
XML Security, 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.xml.enc.dom.DOMStructure
com.ibm.xml.enc.dom.DOMKeyInfo
public class DOMKeyInfo
DOM-based implementation of KeyInfo.
Constructor Summary | |
---|---|
DOMKeyInfo(org.w3c.dom.Element kiElem,
XMLCryptoContext context)
Creates a DOMKeyInfo from XML. |
|
DOMKeyInfo(java.util.List content,
java.lang.String id)
Creates a DOMKeyInfo . |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.util.List |
getContent()
Returns an unmodifiable
list containing the key information. |
java.lang.String |
getId()
Return the optional Id attribute of this KeyInfo , which
may be useful for referencing this KeyInfo from other
XML structures. |
void |
marshal(org.w3c.dom.Node parent,
org.w3c.dom.Node nextSibling,
java.lang.String dsPrefix,
DOMCryptoContext context)
|
void |
marshal(org.w3c.dom.Node parent,
java.lang.String dsPrefix,
DOMCryptoContext context)
|
void |
marshal(XMLStructure parent,
XMLCryptoContext context)
Marshals the key info to XML. |
Methods inherited from class com.ibm.xml.enc.dom.DOMStructure |
---|
isFeatureSupported |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.xml.crypto.XMLStructure |
---|
isFeatureSupported |
Constructor Detail |
---|
public DOMKeyInfo(java.util.List content, java.lang.String id)
DOMKeyInfo
.
content
- a list of one or more XMLStructure
s representing
key information types. The list is defensively copied to protect
against subsequent modification.id
- an ID attribute
java.lang.NullPointerException
- if content
is null
java.lang.IllegalArgumentException
- if content
is empty
java.lang.ClassCastException
- if content
contains any entries
that are not of type XMLStructure
public DOMKeyInfo(org.w3c.dom.Element kiElem, XMLCryptoContext context) throws MarshalException
DOMKeyInfo
from XML.
input
- XML input
MarshalException
Method Detail |
---|
public java.lang.String getId()
KeyInfo
KeyInfo
, which
may be useful for referencing this KeyInfo
from other
XML structures.
getId
in interface KeyInfo
KeyInfo
(may be
null
if not specified)public java.util.List getContent()
KeyInfo
unmodifiable
list
containing the key information. Each entry of the list is
an XMLStructure
.
If there is a public subclass representing the type of
XMLStructure
, it is returned as an instance of that
class (ex: an X509Data
element would be returned as an
instance of X509Data
).
getContent
in interface KeyInfo
XMLStructure
s
in this KeyInfo
. Never returns null
or an
empty list.public void marshal(XMLStructure parent, XMLCryptoContext context) throws MarshalException
KeyInfo
marshal
in interface KeyInfo
parent
- a mechanism-specific structure containing the parent node
that the marshalled key info will be appended tocontext
- the XMLCryptoContext
containing additional
context (may be null if not applicable)
MarshalException
- if the key info cannot be marshalledpublic void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, DOMCryptoContext context) throws MarshalException
marshal
in class DOMStructure
MarshalException
public void marshal(org.w3c.dom.Node parent, org.w3c.dom.Node nextSibling, java.lang.String dsPrefix, DOMCryptoContext context) throws MarshalException
MarshalException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
XML Security, 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |