org.jcp.xml.dsig.internal.dom
public final class DOMKeyValue extends DOMStructure implements KeyValue
Constructor and Description |
---|
DOMKeyValue(org.w3c.dom.Element kvElem)
Creates a
DOMKeyValue from an element. |
DOMKeyValue(java.security.PublicKey key) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.security.PublicKey |
getPublicKey()
Returns the public key of this
KeyValue . |
int |
hashCode() |
void |
marshal(org.w3c.dom.Node parent,
java.lang.String dsPrefix,
DOMCryptoContext context) |
isFeatureSupported
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFeatureSupported
public DOMKeyValue(java.security.PublicKey key) throws java.security.KeyException
java.security.KeyException
public DOMKeyValue(org.w3c.dom.Element kvElem) throws MarshalException
DOMKeyValue
from an element.kvElem
- a KeyValue elementMarshalException
public java.security.PublicKey getPublicKey() throws java.security.KeyException
KeyValue
KeyValue
.getPublicKey
in interface KeyValue
KeyValue
java.security.KeyException
- if this KeyValue
cannot be converted
to a PublicKey
public void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, DOMCryptoContext context) throws MarshalException
marshal
in class DOMStructure
MarshalException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2000-2014 The Apache Software Foundation. All Rights Reserved.