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.
-
Constructor Summary
ConstructorsConstructorDescriptionDOMKeyInfo(List<? extends XMLStructure> content, String id) Creates aDOMKeyInfo.DOMKeyInfo(Element kiElem, XMLCryptoContext context, Provider provider) Creates aDOMKeyInfofrom XML. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic List<XMLStructure>getContent(KeyInfo ki) A utility function to suppress casting warnings.getId()inthashCode()voidmarshal(XMLStructure parent, XMLCryptoContext context) voidmarshal(Node parent, String dsPrefix, DOMCryptoContext context) voidmarshal(Node parent, Node nextSibling, String dsPrefix, DOMCryptoContext context) Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
isFeatureSupportedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
-
Constructor Details
-
DOMKeyInfo
Creates aDOMKeyInfo.- Parameters:
content- a list of one or moreXMLStructures representing key information types. The list is defensively copied to protect against subsequent modification.id- an ID attribute- Throws:
NullPointerException- ifcontentisnullIllegalArgumentException- ifcontentis emptyClassCastException- ifcontentcontains any entries that are not of typeXMLStructure
-
DOMKeyInfo
public DOMKeyInfo(Element kiElem, XMLCryptoContext context, Provider provider) throws MarshalException Creates aDOMKeyInfofrom 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:
getContentin interfaceKeyInfo
-
marshal
- Specified by:
marshalin interfaceKeyInfo- Throws:
MarshalException
-
marshal
- Specified by:
marshalin classDOMStructure- Throws:
MarshalException
-
marshal
public void marshal(Node parent, Node nextSibling, String dsPrefix, DOMCryptoContext context) throws MarshalException - Throws:
MarshalException
-
equals
-
hashCode
public int hashCode()
-