Module org.apache.santuario.xmlsec
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 aDOMKeyValuefrom an element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BigIntegerdecode(Element elem)booleanequals(Object obj)PublicKeygetPublicKey()inthashCode()voidmarshal(Node parent, String dsPrefix, DOMCryptoContext context)-
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
equalsContent, 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 aDOMKeyValuefrom an element.- Parameters:
kvtElem- a KeyValue child element- Throws:
MarshalException
-
-
Method Detail
-
getPublicKey
public PublicKey getPublicKey() throws KeyException
- Specified by:
getPublicKeyin interfaceKeyValue- Throws:
KeyException
-
marshal
public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
- Specified by:
marshalin classDOMStructure- Throws:
MarshalException
-
decode
public static BigInteger decode(Element elem) throws MarshalException
- Throws:
MarshalException
-
-