public final class DOMKeyInfo extends DOMStructure implements KeyInfo
Constructor and Description |
---|
DOMKeyInfo(Element kiElem,
XMLCryptoContext context,
Provider provider)
Creates a
DOMKeyInfo from XML. |
DOMKeyInfo(List<? extends XMLStructure> content,
String id)
Creates a
DOMKeyInfo . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<XMLStructure> |
getContent() |
static List<XMLStructure> |
getContent(KeyInfo ki)
A utility function to suppress casting warnings.
|
String |
getId() |
int |
hashCode() |
void |
marshal(Node parent,
Node nextSibling,
String dsPrefix,
DOMCryptoContext context) |
void |
marshal(Node parent,
String dsPrefix,
DOMCryptoContext context) |
void |
marshal(XMLStructure parent,
XMLCryptoContext context) |
equalsContent, isFeatureSupported
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFeatureSupported
public DOMKeyInfo(List<? extends XMLStructure> content, 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 attributeNullPointerException
- if content
is null
IllegalArgumentException
- if content
is emptyClassCastException
- if content
contains any entries
that are not of type XMLStructure
public DOMKeyInfo(Element kiElem, XMLCryptoContext context, Provider provider) throws MarshalException
DOMKeyInfo
from XML.kiElem
- KeyInfo elementMarshalException
public static List<XMLStructure> getContent(KeyInfo ki)
ki
- public List<XMLStructure> getContent()
getContent
in interface KeyInfo
public void marshal(XMLStructure parent, XMLCryptoContext context) throws MarshalException
marshal
in interface KeyInfo
MarshalException
public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
marshal
in class DOMStructure
MarshalException
public void marshal(Node parent, Node nextSibling, String dsPrefix, DOMCryptoContext context) throws MarshalException
MarshalException
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.