org.apache.jcp.xml.dsig.internal.dom
Class DOMKeyValue
java.lang.Object
org.apache.jcp.xml.dsig.internal.dom.DOMStructure
org.apache.jcp.xml.dsig.internal.dom.DOMKeyValue
- All Implemented Interfaces:
- KeyValue, XMLStructure
public abstract class DOMKeyValue
- extends DOMStructure
- implements KeyValue
DOM-based implementation of KeyValue.
- Author:
- Sean Mullan
DOMKeyValue
public DOMKeyValue(PublicKey key)
throws KeyException
- Throws:
KeyException
DOMKeyValue
public DOMKeyValue(Element kvtElem)
throws MarshalException
- Creates a
DOMKeyValue from an element.
- Parameters:
kvtElem - a KeyValue child element
- Throws:
MarshalException
getPublicKey
public PublicKey getPublicKey()
throws 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:
KeyException - if this KeyValue cannot be converted
to a PublicKey
marshal
public void marshal(Node parent,
String dsPrefix,
DOMCryptoContext context)
throws MarshalException
- Specified by:
marshal in class DOMStructure
- Throws:
MarshalException
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.