public class KeyValueImpl extends XmldsigDOMStructure implements KeyValue
KeyValue element that supports the DOM
XML representation and marshaling mechanism.DOMStructure.NodeWrapper| Modifier and Type | Field and Description |
|---|---|
protected KeyValueType |
keyValue_
The public key.
|
implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALED| Constructor and Description |
|---|
KeyValueImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
KeyValueImpl with the specified
context and node to unmarshal from. |
KeyValueImpl(PublicKey publicKey)
Creates a new instance of this
KeyValueImpl with the specified
public key. |
| Modifier and Type | Method and Description |
|---|---|
protected List |
getChildStructures()
Returns the list of child structures of this
DOMStructure. |
String |
getLocalName()
Returns the local name of the represented XML element.
|
PublicKey |
getPublicKey()
Returns the public key of this
KeyValue. |
protected void |
putChildStructure(DOMStructure childStructure)
Put an unmarshalled child structure.
|
getNamespace, initaddBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshal, marshalAttributes, marshalElement, marshalIDAttribute, newIDforLookUp, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, toString, unmarshal, unmarshalAttributes, unmarshalElement, unmarshalIDAttribute, unmarshalStructures, wrapNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFeatureSupportedprotected KeyValueType keyValue_
null)public KeyValueImpl(DOMCryptoContext context, Node node) throws MarshalException
KeyValueImpl with the specified
context and node to unmarshal from.context - the contextnode - the node to unmarshal fromMarshalException - if an exception occurs during unmarshalingpublic KeyValueImpl(PublicKey publicKey) throws KeyException
KeyValueImpl with the specified
public key.publicKey - the public keyKeyException - if the type of publicKey is not supportedpublic String getLocalName()
DOMStructuregetLocalName in class DOMStructureDOMStructure.getLocalName()public PublicKey getPublicKey() throws KeyException
javax.xml.crypto.dsig.keyinfo.KeyValueKeyValue.getPublicKey in interface KeyValueKeyValueKeyException - if this KeyValue cannot be converted to a
PublicKeyKeyValue.getPublicKey()protected List getChildStructures()
DOMStructureDOMStructure.
This method is called by DOMStructure.marshal(DOMCryptoContext, Node, Node).
A subclass has to overwrite this method to return a list of
DOMStrucutres represented by this subclass.
getChildStructures in class DOMStructureDOMStructures (may be empty, but never
null)DOMStructure.getChildStructures()protected void putChildStructure(DOMStructure childStructure) throws MarshalException
DOMStructure
This method is called by
DOMStructure.unmarshalStructures(NodeList, DOMCryptoContext) for every
unmarshalled child structure.
A subclass has to overwrite this method to store the given child structure in its the corresponding field.
putChildStructure in class DOMStructurechildStructure - the unmarshalled child structureMarshalExceptionDOMStructure.putChildStructure(iaik.xml.crypto.dom.DOMStructure)© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC