com.ibm.xml.enc.dom
Class DOMKeyReference
java.lang.Object
com.ibm.xml.enc.dom.DOMStructure
com.ibm.xml.enc.dom.DOMKeyReference
- All Implemented Interfaces:
- DOMURIReference, KeyReference, ReferenceType, URIReference, XMLStructure
public final class DOMKeyReference
- extends DOMStructure
- implements KeyReference
DOM-based implementation of KeyReference.
Method Summary |
boolean |
equals(java.lang.Object o)
|
java.util.List |
getContent()
Returns an unmodifiable list of XMLStructure s representing
the child elements of this ReferenceType . |
org.w3c.dom.Node |
getHere()
Returns the here node. |
java.lang.String |
getType()
Returns the type of data referenced by this URI. |
java.lang.String |
getURI()
Returns the URI of the referenced data object. |
void |
marshal(org.w3c.dom.Node parent,
java.lang.String encPrefix,
DOMCryptoContext context)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMKeyReference
public DOMKeyReference(java.lang.String uri,
java.util.List content)
DOMKeyReference
public DOMKeyReference(org.w3c.dom.Element refElem)
throws MarshalException
- Throws:
MarshalException
getHere
public org.w3c.dom.Node getHere()
- Description copied from interface:
DOMURIReference
- Returns the here node.
- Specified by:
getHere
in interface DOMURIReference
- Returns:
- the attribute or processing instruction node or the
parent element of the text node that directly contains the URI
marshal
public void marshal(org.w3c.dom.Node parent,
java.lang.String encPrefix,
DOMCryptoContext context)
throws MarshalException
- Throws:
MarshalException
equals
public boolean equals(java.lang.Object o)
getURI
public java.lang.String getURI()
- Description copied from interface:
URIReference
- Returns the URI of the referenced data object.
- Specified by:
getURI
in interface URIReference
- Returns:
- the URI of the data object in RFC 2396 format (may be
null
if not specified)
getType
public java.lang.String getType()
- Description copied from interface:
URIReference
- Returns the type of data referenced by this URI.
- Specified by:
getType
in interface URIReference
- Returns:
- the type (a URI) of the data object (may be
null
if not specified)
getContent
public java.util.List getContent()
- Description copied from interface:
ReferenceType
- Returns an unmodifiable list of
XMLStructure
s representing
the child elements of this ReferenceType
.
- Specified by:
getContent
in interface ReferenceType
- Returns:
- an unmodifiable list of
XMLStructure
s (may be
empty but never null
)
Portions Copyright 2003, 2012 IBM Corporation.
Portions Copyright 2003, 2012 Oracle and/or its affiliates.