org.apache.jcp.xml.dsig.internal.dom
Class DOMKeyName

java.lang.Object
  extended by org.apache.jcp.xml.dsig.internal.dom.BaseStructure
      extended by org.apache.jcp.xml.dsig.internal.dom.DOMKeyName
All Implemented Interfaces:
KeyName, XMLStructure

public final class DOMKeyName
extends BaseStructure
implements KeyName

DOM-based implementation of KeyName.

Author:
Sean Mullan

Constructor Summary
DOMKeyName(Element knElem)
          Creates a DOMKeyName from a KeyName element.
DOMKeyName(String name)
          Creates a DOMKeyName.
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
          Returns the name of this KeyName.
 int hashCode()
           
 
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.BaseStructure
isFeatureSupported, textOfNode
 
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 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
Method Detail

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)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2000–2013 The Apache Software Foundation. All rights reserved.