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
- Direct Known Subclasses:
DOMKeyValue.DSA
,DOMKeyValue.EC
,DOMKeyValue.RSA
,DOMKeyValue.Unknown
DOM-based implementation of KeyValue.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
(package private) static final class
(package private) static final class
(package private) static final class
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDOMKeyValue
(K key) DOMKeyValue
(Element kvtElem) Creates aDOMKeyValue
from an element. -
Method Summary
Modifier and TypeMethodDescriptionprivate static BigInteger
static BigInteger
boolean
private static PublicKey
generatePublicKey
(KeyFactory kf, KeySpec keyspec) int
hashCode()
void
marshal
(Node parent, String dsPrefix, DOMCryptoContext context) (package private) abstract void
marshalPublicKey
(Node parent, Document doc, String dsPrefix, DOMCryptoContext context) (package private) static KeyValue
(package private) abstract K
unmarshalKeyValue
(Element kvtElem) 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
-
Field Details
-
XMLDSIG_11_XMLNS
- See Also:
-
publicKey
-
-
Constructor Details
-
DOMKeyValue
- Throws:
KeyException
-
DOMKeyValue
Creates aDOMKeyValue
from an element.- Parameters:
kvtElem
- a KeyValue child element- Throws:
MarshalException
-
-
Method Details
-
unmarshal
- Throws:
MarshalException
-
getPublicKey
- Specified by:
getPublicKey
in interfaceKeyValue
- Throws:
KeyException
-
marshal
- Specified by:
marshal
in classDOMStructure
- Throws:
MarshalException
-
marshalPublicKey
abstract void marshalPublicKey(Node parent, Document doc, String dsPrefix, DOMCryptoContext context) throws MarshalException - Throws:
MarshalException
-
unmarshalKeyValue
- Throws:
MarshalException
-
generatePublicKey
-
equals
-
decode
- Throws:
MarshalException
-
hashCode
public int hashCode() -
bigInt
-