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 aDOMKeyValuefrom an element. -
Method Summary
Modifier and TypeMethodDescriptionprivate static BigIntegerstatic BigIntegerbooleanprivate static PublicKeygeneratePublicKey(KeyFactory kf, KeySpec keyspec) inthashCode()voidmarshal(Node parent, String dsPrefix, DOMCryptoContext context) (package private) abstract voidmarshalPublicKey(Node parent, Document doc, String dsPrefix, DOMCryptoContext context) (package private) static KeyValue(package private) abstract KunmarshalKeyValue(Element kvtElem) Methods inherited from class DOMStructure
isFeatureSupportedMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface XMLStructure
isFeatureSupported
-
Field Details
-
XMLDSIG_11_XMLNS
- See Also:
-
publicKey
-
-
Constructor Details
-
DOMKeyValue
- Throws:
KeyException
-
DOMKeyValue
Creates aDOMKeyValuefrom an element.- Parameters:
kvtElem- a KeyValue child element- Throws:
MarshalException
-
-
Method Details
-
unmarshal
- Throws:
MarshalException
-
getPublicKey
- Specified by:
getPublicKeyin interfaceKeyValue- Throws:
KeyException
-
marshal
- Specified by:
marshalin 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
-
bigInt
-