public class EncryptionPropertiesImpl extends XencDOMStructure implements EncryptionProperties
EncryptionProperties element that
supports the DOM XML representation and processing mechanism.DOMStructure.NodeWrapper| Modifier and Type | Field and Description |
|---|---|
protected List |
encryptionProperties_
The list of
EncryptionPropertyImpls. |
protected String |
id_
The
Id-attribute value. |
implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALEDTYPE| Constructor and Description |
|---|
EncryptionPropertiesImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
EncryptionPropertiesImpl with
the specified context and node to unmarshal from. |
EncryptionPropertiesImpl(List properties,
String id)
Creates a new instance of this
EncryptionPropertiesImpl with
the specified list of EncryptionPropertyImpls and Id
-attribute value. |
| Modifier and Type | Method and Description |
|---|---|
protected List |
getChildStructures()
Returns the list of child structures of this
DOMStructure. |
String |
getId()
Returns the optional ID.
|
String |
getLocalName()
Returns the local name of the represented XML element.
|
List |
getProperties()
Returns an unmodifiable list of
EncryptionPropertys. |
protected Attr |
marshalIDAttribute(DOMCryptoContext context,
Element parent)
Marshals the XML representation of an optional
Id-attribute
represented by this DOMStructure. |
protected void |
putChildStructure(DOMStructure childStructure)
Put an unmarshalled child structure.
|
protected void |
unmarshalAttributes(NamedNodeMap attributes,
DOMCryptoContext context)
Unmarshal the given
attributes. |
getNamespace, initaddBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshal, marshalAttributes, marshalElement, newIDforLookUp, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, toString, unmarshal, unmarshalElement, unmarshalIDAttribute, unmarshalStructures, wrapNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFeatureSupportedprotected List encryptionProperties_
EncryptionPropertyImpls. (may not be null)protected String id_
Id-attribute value.public EncryptionPropertiesImpl(DOMCryptoContext context, Node node) throws MarshalException
EncryptionPropertiesImpl with
the specified context and node to unmarshal from.context - the contextnode - the node to unmarshal fromMarshalException - if an exception occurs during unmarshalingpublic EncryptionPropertiesImpl(List properties, String id)
EncryptionPropertiesImpl with
the specified list of EncryptionPropertyImpls and Id
-attribute value.properties - a list of EncryptionPropertyImplsid - the Id-attribute value (may be null)NullPointerException - if properties is nullIllegalArgumentException - if properties is emptyClassCastException - if properties contains any elements not of type
EncryptionPropertypublic String getLocalName()
DOMStructuregetLocalName in class DOMStructureDOMStructure.getLocalName()public String getId()
javax.xml.crypto.enc.EncryptionPropertiesgetId in interface EncryptionPropertiesEncryptionProperties.getId()public List getProperties()
javax.xml.crypto.enc.EncryptionPropertiesEncryptionPropertys.getProperties in interface EncryptionPropertiesEncryptionProperty s (never
null or empty)EncryptionProperties.getProperties()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)protected Attr marshalIDAttribute(DOMCryptoContext context, Element parent)
DOMStructureId-attribute
represented by this DOMStructure.
This method is called by DOMStructure.marshal(DOMCryptoContext, Node, Node).
A subclass has to overwrite this method in order to marshal an
Id-attribute.
marshalIDAttribute 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.Id-attribute if any, otherwise
nullDOMStructure.marshalIDAttribute(DOMCryptoContext,
Element)protected void unmarshalAttributes(NamedNodeMap attributes, DOMCryptoContext context) throws MarshalException
DOMStructureattributes.
This method is called by DOMStructure.unmarshal(DOMCryptoContext).
A subclass has to overwrite this method to perform any special unmarshaling required.
unmarshalAttributes in class DOMStructureattributes - the Attributes to unmarshalcontext - the marshal contextMarshalException - if an exception occurs during unmarshalingDOMStructure.unmarshalAttributes(org.w3c.dom.NamedNodeMap,
DOMCryptoContext)© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC