javax.xml.crypto.dsig.keyinfo.KeyInfo, javax.xml.crypto.XMLStructurepublic final class DOMKeyInfo extends BaseStructure implements javax.xml.crypto.dsig.keyinfo.KeyInfo
| Constructor | Description |
|---|---|
DOMKeyInfo(java.util.List<? extends javax.xml.crypto.XMLStructure> content,
java.lang.String id) |
Creates a
DOMKeyInfo. |
DOMKeyInfo(org.w3c.dom.Element kiElem,
javax.xml.crypto.XMLCryptoContext context,
java.security.Provider provider) |
Creates a
DOMKeyInfo from XML. |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object o) |
|
java.util.List<javax.xml.crypto.XMLStructure> |
getContent() |
|
static java.util.List<javax.xml.crypto.XMLStructure> |
getContent(javax.xml.crypto.dsig.keyinfo.KeyInfo ki) |
A utility function to suppress casting warnings.
|
java.lang.String |
getId() |
|
int |
hashCode() |
|
void |
marshal(javax.xml.crypto.XMLStructure parent,
javax.xml.crypto.XMLCryptoContext context) |
|
static void |
marshal(XmlWriter xwriter,
javax.xml.crypto.dsig.keyinfo.KeyInfo ki,
java.lang.String dsPrefix,
javax.xml.crypto.XMLCryptoContext context) |
isFeatureSupported, textOfNodepublic 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 static java.util.List<javax.xml.crypto.XMLStructure> getContent(javax.xml.crypto.dsig.keyinfo.KeyInfo ki)
ki - public java.lang.String getId()
getId in interface javax.xml.crypto.dsig.keyinfo.KeyInfopublic java.util.List<javax.xml.crypto.XMLStructure> 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 static void marshal(XmlWriter xwriter, javax.xml.crypto.dsig.keyinfo.KeyInfo ki, java.lang.String dsPrefix, javax.xml.crypto.XMLCryptoContext context) throws javax.xml.crypto.MarshalException
javax.xml.crypto.MarshalExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object