XML Security, 1.6

com.ibm.xml.enc.dom
Class DOMKeyName

java.lang.Object
  extended by com.ibm.xml.enc.dom.DOMStructure
      extended by com.ibm.xml.enc.dom.DOMKeyName
All Implemented Interfaces:
KeyName, XMLStructure

public final class DOMKeyName
extends DOMStructure
implements KeyName

DOM-based implementation of KeyName.


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.
 void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, DOMCryptoContext context)
           
 
Methods inherited from class com.ibm.xml.enc.dom.DOMStructure
isFeatureSupported
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, 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

XML Security, 1.6

Portions Copyright 2003, 2012 IBM Corporation.
Portions Copyright 2003, 2012 Oracle and/or its affiliates.