Class DOMKeyInfo
java.lang.Object
org.apache.jcp.xml.dsig.internal.dom.DOMStructure
org.apache.jcp.xml.dsig.internal.dom.DOMKeyInfo
- All Implemented Interfaces:
KeyInfo
,XMLStructure
DOM-based implementation of KeyInfo.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDOMKeyInfo
(List<? extends XMLStructure> content, String id) Creates aDOMKeyInfo
.DOMKeyInfo
(Element kiElem, XMLCryptoContext context, Provider provider) Creates aDOMKeyInfo
from XML. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static List<XMLStructure>
getContent
(KeyInfo ki) A utility function to suppress casting warnings.getId()
int
hashCode()
void
marshal
(XMLStructure parent, XMLCryptoContext context) void
marshal
(Node parent, String dsPrefix, DOMCryptoContext context) private void
void
marshal
(Node parent, Node nextSibling, String dsPrefix, DOMCryptoContext context) Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
isFeatureSupported
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
-
Field Details
-
id
-
keyInfoTypes
-
-
Constructor Details
-
DOMKeyInfo
Creates aDOMKeyInfo
.- Parameters:
content
- a list of one or moreXMLStructure
s representing key information types. The list is defensively copied to protect against subsequent modification.id
- an ID attribute- Throws:
NullPointerException
- ifcontent
isnull
IllegalArgumentException
- ifcontent
is emptyClassCastException
- ifcontent
contains any entries that are not of typeXMLStructure
-
DOMKeyInfo
public DOMKeyInfo(Element kiElem, XMLCryptoContext context, Provider provider) throws MarshalException Creates aDOMKeyInfo
from XML.- Parameters:
kiElem
- KeyInfo element- Throws:
MarshalException
-
-
Method Details
-
getContent
A utility function to suppress casting warnings.- Parameters:
ki
-- Returns:
- the content of a KeyInfo Object
-
getId
-
getContent
- Specified by:
getContent
in interfaceKeyInfo
-
marshal
- Specified by:
marshal
in interfaceKeyInfo
- Throws:
MarshalException
-
marshal
- Specified by:
marshal
in classDOMStructure
- Throws:
MarshalException
-
marshal
public void marshal(Node parent, Node nextSibling, String dsPrefix, DOMCryptoContext context) throws MarshalException - Throws:
MarshalException
-
marshal
private void marshal(Node parent, Element kiElem, Node nextSibling, String dsPrefix, DOMCryptoContext context) throws MarshalException - Throws:
MarshalException
-
equals
-
hashCode
public int hashCode()
-