- java.lang.Object
-
- org.apache.jcp.xml.dsig.internal.dom.DOMStructure
-
- org.apache.jcp.xml.dsig.internal.dom.DOMKeyName
-
- All Implemented Interfaces:
KeyName,XMLStructure
public final class DOMKeyName extends DOMStructure implements KeyName
DOM-based implementation of KeyName.
-
-
Constructor Summary
Constructors Constructor Description DOMKeyName(String name)Creates aDOMKeyName.DOMKeyName(Element knElem)Creates aDOMKeyNamefrom a KeyName element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetName()inthashCode()voidmarshal(Node parent, String dsPrefix, DOMCryptoContext context)-
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
equalsContent, 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
-
-
-
-
Constructor Detail
-
DOMKeyName
public DOMKeyName(String name)
Creates aDOMKeyName.- Parameters:
name- the name of the key identifier- Throws:
NullPointerException- ifnameis null
-
DOMKeyName
public DOMKeyName(Element knElem)
Creates aDOMKeyNamefrom a KeyName element.- Parameters:
knElem- a KeyName element
-
-
Method Detail
-
marshal
public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
- Specified by:
marshalin classDOMStructure- Throws:
MarshalException
-
-