public final class DOMX509Data extends DOMStructure implements javax.xml.crypto.dsig.keyinfo.X509Data
| Constructor and Description |
|---|
DOMX509Data(org.w3c.dom.Element xdElem)
Creates a
DOMX509Data from an element. |
DOMX509Data(java.util.List<?> content)
Creates a DOMX509Data.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.List |
getContent() |
void |
marshal(org.w3c.dom.Node parent,
java.lang.String dsPrefix,
javax.xml.crypto.dom.DOMCryptoContext context) |
isFeatureSupportedpublic DOMX509Data(java.util.List<?> content)
content - a list of one or more X.509 data types. Valid types are
String (subject names), byte[] (subject key ids),
X509Certificate, X509CRL,
or javax.xml.dsig.XMLStructure (X509IssuerSerial
objects or elements from an external namespace). The list is
defensively copied to protect against subsequent modification.java.lang.NullPointerException - if content is nulljava.lang.IllegalArgumentException - if content is emptyjava.lang.ClassCastException - if content contains any entries
that are not of one of the valid types mentioned abovepublic DOMX509Data(org.w3c.dom.Element xdElem)
throws javax.xml.crypto.MarshalException
DOMX509Data from an element.xdElem - an X509Data elementjavax.xml.crypto.MarshalException - if there is an error while unmarshallingpublic java.util.List getContent()
getContent in interface javax.xml.crypto.dsig.keyinfo.X509Datapublic 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 boolean equals(java.lang.Object o)
equals in class java.lang.Object