org.jcp.xml.dsig.internal.dom
Class DOMKeyValue
- java.lang.Object
-
- org.jcp.xml.dsig.internal.dom.DOMStructure
-
- org.jcp.xml.dsig.internal.dom.DOMKeyValue
-
- All Implemented Interfaces:
- javax.xml.crypto.dsig.keyinfo.KeyValue, javax.xml.crypto.XMLStructure
public abstract class DOMKeyValue extends DOMStructure implements javax.xml.crypto.dsig.keyinfo.KeyValue
DOM-based implementation of KeyValue.
-
-
Constructor Summary
Constructors Constructor and Description DOMKeyValue(org.w3c.dom.Element kvtElem)Creates aDOMKeyValuefrom an element.DOMKeyValue(java.security.PublicKey key)
-
Method Summary
Methods Modifier and Type Method and Description booleanequals(java.lang.Object obj)java.security.PublicKeygetPublicKey()inthashCode()voidmarshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, javax.xml.crypto.dom.DOMCryptoContext context)-
Methods inherited from class org.jcp.xml.dsig.internal.dom.DOMStructure
isFeatureSupported
-
-
-
-
Constructor Detail
-
DOMKeyValue
public DOMKeyValue(java.security.PublicKey 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(org.w3c.dom.Node parent, java.lang.String dsPrefix, javax.xml.crypto.dom.DOMCryptoContext context) throws javax.xml.crypto.MarshalException- Specified by:
marshalin classDOMStructure- Throws:
javax.xml.crypto.MarshalException
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-