org.apache.jcp.xml.dsig.internal.dom
Class DOMKeyName
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.
- Author:
- Sean Mullan
DOMKeyName
public DOMKeyName(String name)
- Creates a
DOMKeyName.
- Parameters:
name - the name of the key identifier
- Throws:
NullPointerException - if name is null
DOMKeyName
public DOMKeyName(Element knElem)
- Creates a
DOMKeyName from a KeyName element.
- Parameters:
knElem - a KeyName element
getName
public String getName()
- Description copied from interface:
KeyName
- Returns the name of this
KeyName.
- Specified by:
getName in interface KeyName
- Returns:
- the name of this
KeyName (never
null)
marshal
public void marshal(Node parent,
String dsPrefix,
DOMCryptoContext context)
throws MarshalException
- Specified by:
marshal in class DOMStructure
- Throws:
MarshalException
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.