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
-
-
Constructor Summary
Constructors Constructor Description DOMKeyValue(K key)
DOMKeyValue(Element kvtElem)
Creates aDOMKeyValue
from an element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BigInteger
decode(Element elem)
boolean
equals(Object obj)
PublicKey
getPublicKey()
int
hashCode()
void
marshal(XmlWriter xwriter, String dsPrefix, XMLCryptoContext context)
static void
marshal(XmlWriter xwriter, BigInteger bigNum)
static void
writeBase64BigIntegerElement(XmlWriter xwriter, String prefix, String localName, String namespaceURI, BigInteger value)
-
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.BaseStructure
isFeatureSupported, textOfNode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
-
-
-
-
Constructor Detail
-
DOMKeyValue
public DOMKeyValue(K key) throws KeyException
- Throws:
KeyException
-
DOMKeyValue
public DOMKeyValue(Element kvtElem) throws MarshalException
Creates aDOMKeyValue
from an element.- Parameters:
kvtElem
- a KeyValue child element- Throws:
MarshalException
-
-
Method Detail
-
getPublicKey
public PublicKey getPublicKey() throws KeyException
- Specified by:
getPublicKey
in interfaceKeyValue
- Throws:
KeyException
-
marshal
public void marshal(XmlWriter xwriter, String dsPrefix, XMLCryptoContext context) throws MarshalException
- Throws:
MarshalException
-
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)
-
-