Class DOMKeyValue<K extends java.security.PublicKey>
- java.lang.Object
-
- org.apache.jcp.xml.dsig.internal.dom.BaseStructure
-
- org.apache.jcp.xml.dsig.internal.dom.DOMKeyValue<K>
-
- All Implemented Interfaces:
javax.xml.crypto.dsig.keyinfo.KeyValue,javax.xml.crypto.XMLStructure
public abstract class DOMKeyValue<K extends java.security.PublicKey> extends BaseStructure implements javax.xml.crypto.dsig.keyinfo.KeyValue
DOM-based implementation of KeyValue.- Author:
- Sean Mullan
-
-
Constructor Summary
Constructors Constructor Description DOMKeyValue(K key)DOMKeyValue(org.w3c.dom.Element kvtElem)Creates aDOMKeyValuefrom an element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.math.BigIntegerdecode(org.w3c.dom.Element elem)booleanequals(java.lang.Object obj)java.security.PublicKeygetPublicKey()inthashCode()voidmarshal(XmlWriter xwriter, java.lang.String dsPrefix, javax.xml.crypto.XMLCryptoContext context)static voidmarshal(XmlWriter xwriter, java.math.BigInteger bigNum)static voidwriteBase64BigIntegerElement(XmlWriter xwriter, java.lang.String prefix, java.lang.String localName, java.lang.String namespaceURI, java.math.BigInteger value)-
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.BaseStructure
isFeatureSupported, textOfNode
-
-
-
-
Constructor Detail
-
DOMKeyValue
public DOMKeyValue(K key) throws java.security.KeyException
- Throws:
java.security.KeyException
-
DOMKeyValue
public DOMKeyValue(org.w3c.dom.Element kvtElem) throws javax.xml.crypto.MarshalExceptionCreates aDOMKeyValuefrom an element.- Parameters:
kvtElem- a KeyValue child element- Throws:
javax.xml.crypto.MarshalException
-
-
Method Detail
-
getPublicKey
public java.security.PublicKey getPublicKey() throws java.security.KeyException- Specified by:
getPublicKeyin interfacejavax.xml.crypto.dsig.keyinfo.KeyValue- Throws:
java.security.KeyException
-
marshal
public void marshal(XmlWriter xwriter, java.lang.String dsPrefix, javax.xml.crypto.XMLCryptoContext context) throws javax.xml.crypto.MarshalException
- Throws:
javax.xml.crypto.MarshalException
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
decode
public static java.math.BigInteger decode(org.w3c.dom.Element elem) throws javax.xml.crypto.MarshalException- Throws:
javax.xml.crypto.MarshalException
-
writeBase64BigIntegerElement
public static void writeBase64BigIntegerElement(XmlWriter xwriter, java.lang.String prefix, java.lang.String localName, java.lang.String namespaceURI, java.math.BigInteger value)
-
marshal
public static void marshal(XmlWriter xwriter, java.math.BigInteger bigNum)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-