public final class DOMKeyInfo extends DOMStructure implements javax.xml.crypto.dsig.keyinfo.KeyInfo
Constructor and Description |
---|
DOMKeyInfo(org.w3c.dom.Element kiElem,
javax.xml.crypto.XMLCryptoContext context,
java.security.Provider provider)
Creates a
DOMKeyInfo from XML. |
DOMKeyInfo(java.util.List<? extends javax.xml.crypto.XMLStructure> content,
java.lang.String id)
Creates a
DOMKeyInfo . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.List |
getContent() |
java.lang.String |
getId() |
void |
marshal(org.w3c.dom.Node parent,
org.w3c.dom.Node nextSibling,
java.lang.String dsPrefix,
javax.xml.crypto.dom.DOMCryptoContext context) |
void |
marshal(org.w3c.dom.Node parent,
java.lang.String dsPrefix,
javax.xml.crypto.dom.DOMCryptoContext context) |
void |
marshal(javax.xml.crypto.XMLStructure parent,
javax.xml.crypto.XMLCryptoContext context) |
isFeatureSupported
public DOMKeyInfo(java.util.List<? extends javax.xml.crypto.XMLStructure> 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 attributejava.lang.NullPointerException
- if content
is null
java.lang.IllegalArgumentException
- if content
is emptyjava.lang.ClassCastException
- if content
contains any entries
that are not of type XMLStructure
public DOMKeyInfo(org.w3c.dom.Element kiElem, javax.xml.crypto.XMLCryptoContext context, java.security.Provider provider) throws javax.xml.crypto.MarshalException
DOMKeyInfo
from XML.kiElem
- KeyInfo elementjavax.xml.crypto.MarshalException
public java.lang.String getId()
getId
in interface javax.xml.crypto.dsig.keyinfo.KeyInfo
public java.util.List getContent()
getContent
in interface javax.xml.crypto.dsig.keyinfo.KeyInfo
public void marshal(javax.xml.crypto.XMLStructure parent, javax.xml.crypto.XMLCryptoContext context) throws javax.xml.crypto.MarshalException
marshal
in interface javax.xml.crypto.dsig.keyinfo.KeyInfo
javax.xml.crypto.MarshalException
public void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, javax.xml.crypto.dom.DOMCryptoContext context) throws javax.xml.crypto.MarshalException
marshal
in class DOMStructure
javax.xml.crypto.MarshalException
public void marshal(org.w3c.dom.Node parent, org.w3c.dom.Node nextSibling, java.lang.String dsPrefix, javax.xml.crypto.dom.DOMCryptoContext context) throws javax.xml.crypto.MarshalException
javax.xml.crypto.MarshalException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object