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) |
isFeatureSupportedpublic DOMKeyInfo(java.util.List<? extends javax.xml.crypto.XMLStructure> content,
java.lang.String id)
DOMKeyInfo.content - a list of one or more XMLStructures representing
key information types. The list is defensively copied to protect
against subsequent modification.id - an ID attributejava.lang.NullPointerException - if content is nulljava.lang.IllegalArgumentException - if content is emptyjava.lang.ClassCastException - if content contains any entries
that are not of type XMLStructurepublic 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.MarshalExceptionpublic java.lang.String getId()
getId in interface javax.xml.crypto.dsig.keyinfo.KeyInfopublic java.util.List getContent()
getContent in interface javax.xml.crypto.dsig.keyinfo.KeyInfopublic 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.KeyInfojavax.xml.crypto.MarshalExceptionpublic 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 DOMStructurejavax.xml.crypto.MarshalExceptionpublic 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.MarshalExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object