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

java.lang.Object
  extended by org.jcp.xml.dsig.internal.dom.DOMStructure
      extended by org.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

Constructor Summary
DOMKeyName(org.w3c.dom.Element knElem)
          Creates a DOMKeyName from a KeyName element.
DOMKeyName(java.lang.String name)
          Creates a DOMKeyName.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getName()
          Returns the name of this KeyName.
 int hashCode()
           
 void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, DOMCryptoContext context)
           
 
Methods inherited from class org.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
 

Constructor Detail

DOMKeyName

public DOMKeyName(java.lang.String name)
Creates a DOMKeyName.

Parameters:
name - the name of the key identifier
Throws:
java.lang.NullPointerException - if name is null

DOMKeyName

public DOMKeyName(org.w3c.dom.Element knElem)
Creates a DOMKeyName from a KeyName element.

Parameters:
knElem - a KeyName element
Method Detail

getName

public java.lang.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(org.w3c.dom.Node parent,
                    java.lang.String dsPrefix,
                    DOMCryptoContext context)
             throws MarshalException
Specified by:
marshal in class DOMStructure
Throws:
MarshalException

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2000-2011 The Apache Software Foundation. All Rights Reserved.