com.ibm.xml.enc.dom
Class DOMKeyValue
java.lang.Object
com.ibm.xml.enc.dom.DOMStructure
com.ibm.xml.enc.dom.DOMKeyValue
- All Implemented Interfaces:
- KeyValue, XMLStructure
public final class DOMKeyValue
- extends DOMStructure
- implements KeyValue
DOM-based implementation of KeyValue.
Constructor Summary |
DOMKeyValue(org.w3c.dom.Element kvElem)
Creates a DOMKeyValue from an element. |
DOMKeyValue(java.security.PublicKey key)
|
Method Summary |
boolean |
equals(java.lang.Object obj)
|
java.security.PublicKey |
getPublicKey()
Returns the public key of this KeyValue . |
void |
marshal(org.w3c.dom.Node parent,
java.lang.String dsPrefix,
DOMCryptoContext context)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMKeyValue
public DOMKeyValue(java.security.PublicKey key)
throws java.security.KeyException
- Throws:
java.security.KeyException
DOMKeyValue
public DOMKeyValue(org.w3c.dom.Element kvElem)
throws MarshalException
- Creates a
DOMKeyValue
from an element.
- Parameters:
kvElem
- a KeyValue element
- Throws:
MarshalException
getPublicKey
public java.security.PublicKey getPublicKey()
throws java.security.KeyException
- Description copied from interface:
KeyValue
- Returns the public key of this
KeyValue
.
- Specified by:
getPublicKey
in interface KeyValue
- Returns:
- the public key of this
KeyValue
- Throws:
java.security.KeyException
- if this KeyValue
cannot be converted
to a PublicKey
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
Portions Copyright 2003, 2012 IBM Corporation.
Portions Copyright 2003, 2012 Oracle and/or its affiliates.