Class DOMKeyValue<K extends PublicKey>
- java.lang.Object
-
- org.apache.jcp.xml.dsig.internal.dom.DOMStructure
-
- org.apache.jcp.xml.dsig.internal.dom.DOMKeyValue<K>
-
- All Implemented Interfaces:
KeyValue
,XMLStructure
public abstract class DOMKeyValue<K extends PublicKey> extends DOMStructure implements KeyValue
DOM-based implementation of KeyValue.
-
-
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(Node parent, String dsPrefix, DOMCryptoContext context)
-
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
isFeatureSupported
-
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(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
- Specified by:
marshal
in classDOMStructure
- Throws:
MarshalException
-
decode
public static BigInteger decode(Element elem) throws MarshalException
- Throws:
MarshalException
-
-