public class ECDSAKeyValueImpl extends ECDSAKeyValueTypeImpl
ECDSAKeyValue that supports the DOM XML
representation and processing mechanism.DOMStructure.NodeWrapper| Modifier and Type | Field and Description |
|---|---|
static int |
BINARYFIELD_TYPE
The underlying base field type binary field.
|
static int |
PRIMEFIELD_TYPE
The underlying base field type prime field.
|
static String |
xsiNS
The xsi namespace needed for validation
|
publicKey_implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALED| Constructor and Description |
|---|
ECDSAKeyValueImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
ECDSAKeyValueImpl with the
specified context and node to unmarshal from. |
ECDSAKeyValueImpl(PublicKey ecdsaPublicKey)
Creates a new instance of this
ECDSAKeyValueImpl with the
specified ECDSA public key. |
| Modifier and Type | Method and Description |
|---|---|
String |
getLocalName()
Returns the local name of the represented XML element.
|
String |
getNamespace()
Returns the namespace URI of the represented XML element.
|
Node |
marshal(DOMCryptoContext context,
Node parent,
Node nextSibling)
Marshal the DOM node representation of this
DOMStructure and
all its child DOMStructures. |
protected void |
marshalAttributes(DOMCryptoContext context,
Element parent)
Marshals the XML representation of all
Attributes
represented by this DOMStrucuture. |
protected void |
unmarshalStructures(NodeList nodes,
DOMCryptoContext context)
Unmarshals
DOMStructures from the given nodes. |
newInstancegetPublicKeyinitaddBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructures, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshalElement, marshalIDAttribute, newIDforLookUp, putChildStructure, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, toString, unmarshal, unmarshalAttributes, unmarshalElement, unmarshalIDAttribute, wrapNodepublic static final int PRIMEFIELD_TYPE
public static final int BINARYFIELD_TYPE
public static final String xsiNS
public ECDSAKeyValueImpl(DOMCryptoContext context, Node node) throws MarshalException
ECDSAKeyValueImpl with the
specified context and node to unmarshal from.context - the contextnode - the node to unmarshal fromMarshalException - if an exception occurs during unmarshalingpublic ECDSAKeyValueImpl(PublicKey ecdsaPublicKey)
ECDSAKeyValueImpl with the
specified ECDSA public key.ecdsaPublicKey - the ECDSA public keyNullPointerException - if ecdsaPublicKey is nullIllegalArgumentException - if the given ecdsaPublicKey is not a valid ECDSA
public keypublic String getLocalName()
DOMStructuregetLocalName in class DOMStructureDOMStructure.getLocalName()public String getNamespace()
DOMStructuregetNamespace in class XmldsigDOMStructureDOMStructure.getNamespace()protected void marshalAttributes(DOMCryptoContext context, Element parent) throws MarshalException
DOMStructureAttributes
represented by this DOMStrucuture.
This method is called by DOMStructure.marshal(DOMCryptoContext, Node, Node).
If no namespace prefix is set in the context for the namespace
of the Element represented by this DOMStructure an
namespace declaration is marshaled and returned. Otherwise, an empty list
is returned.
A subclass has to overwrite this method in order to marshal any additional attributes.
marshalAttributes in class DOMStructurecontext - the marshal contextparent - the element is the parent of the attribute node created however, an
the attribute node is not a child of it's parent element. see XPath.MarshalException - if an exception occurs during marshalingDOMStructure.marshalAttributes(DOMCryptoContext,
Element)public Node marshal(DOMCryptoContext context, Node parent, Node nextSibling) throws MarshalException
DOMStructureDOMStructure and
all its child DOMStructures.
marshal in class DOMStructurecontext - the DOMMarshalContext holding context information about
the marshaling of this DOMStructureparent - where to place the marshalled nodenextSibling - before wich to place the marshalled nodeDOMStrucuture and
all its child DOMStructuruesMarshalException - if the marshaling fails for any reasonDOMStructure.marshal(DOMCryptoContext, Node, Node)protected void unmarshalStructures(NodeList nodes, DOMCryptoContext context) throws MarshalException
DOMStructureDOMStructures from the given nodes.
This method is called by DOMStructure.unmarshal(DOMCryptoContext).
This method calls DOMStructure.getInstance(Node, DOMCryptoContext) for every
Element in the list of nodes. If
DOMStructure.getInstance(Node, DOMCryptoContext) returns a
DOMStructure DOMStructure.putChildStructure(DOMStructure) is
called with the returned DOMStructure as parameter.
unmarshalStructures in class DOMStructurenodes - the nodes to unmarshal fromcontext - the marshal contextMarshalException - if an exception occurs during marshalingDOMStructure.unmarshalStructures(org.w3c.dom.NodeList,
DOMCryptoContext)© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC