org.apache.jcp.xml.dsig.internal.dom
Class DOMKeyValue<K extends PublicKey>
java.lang.Object
org.apache.jcp.xml.dsig.internal.dom.BaseStructure
org.apache.jcp.xml.dsig.internal.dom.DOMKeyValue<K>
- All Implemented Interfaces:
- KeyValue, XMLStructure
public abstract class DOMKeyValue<K extends PublicKey>
- extends BaseStructure
- implements KeyValue
DOM-based implementation of KeyValue.
- Author:
- Sean Mullan
DOMKeyValue
public DOMKeyValue(K 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(XmlWriter xwriter,
String dsPrefix,
XMLCryptoContext context)
throws MarshalException
- Throws:
MarshalException
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
decode
public static BigInteger decode(Element elem)
throws MarshalException
- Throws:
MarshalException
writeBase64BigIntegerElement
public static void writeBase64BigIntegerElement(XmlWriter xwriter,
String prefix,
String localName,
String namespaceURI,
BigInteger value)
marshal
public static void marshal(XmlWriter xwriter,
BigInteger bigNum)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2000–2013 The Apache Software Foundation. All rights reserved.