public class RSAKeyValueImpl extends KeyValueType
RSAKeyValue that supports the DOM XML
representation and processing mechanism.DOMStructure.NodeWrapperpublicKey_implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALED| Constructor and Description |
|---|
RSAKeyValueImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
RSAKeyValueImpl with the
specified context and node to unmarshal from. |
RSAKeyValueImpl(RSAPublicKey rsaPublicKey)
Creates a new instance of this
RSAKeyValueImpl with the
specified public key. |
| Modifier and Type | Method and Description |
|---|---|
String |
getLocalName()
Returns the local name 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 |
unmarshalStructures(NodeList nodes,
DOMCryptoContext context)
Unmarshals
DOMStructures from the given nodes. |
getPublicKeygetNamespace, initaddBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructures, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshalAttributes, marshalElement, marshalIDAttribute, newIDforLookUp, putChildStructure, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, toString, unmarshal, unmarshalAttributes, unmarshalElement, unmarshalIDAttribute, wrapNodepublic RSAKeyValueImpl(DOMCryptoContext context, Node node) throws MarshalException
RSAKeyValueImpl with the
specified context and node to unmarshal from.context - the contextnode - the node to unmarshal fromMarshalException - if an exception occurs during unmarshalingpublic RSAKeyValueImpl(RSAPublicKey rsaPublicKey)
RSAKeyValueImpl with the
specified public key.rsaPublicKey - the public keyNullPointerException - if rsaPublicKey is nullpublic String getLocalName()
DOMStructuregetLocalName in class DOMStructureDOMStructure.getLocalName()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