public class SignaturePropertiesImpl extends XmldsigDOMStructure implements SignatureProperties
SignaturePorperties element that
supports the DOM XML representation and processing mechanism.DOMStructure.NodeWrapper| Modifier and Type | Field and Description |
|---|---|
protected String |
id_
The
Id-attribute value. |
protected List |
signatureProperties_
The list of
SignaturePropertyImpls. |
implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALEDTYPE| Constructor and Description |
|---|
SignaturePropertiesImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
SignaturePropertiesImpl with
the specified context and node to unmarshal from. |
SignaturePropertiesImpl(List signatureProperties,
String id)
Creates a new instance of this
SignaturePropertiesImpl with
the specified list of SignaturePropertyImpls and Id
-attribute value. |
| Modifier and Type | Method and Description |
|---|---|
protected List |
getChildStructures()
Returns all contained structures.
|
String |
getId()
Returns the Id of this
SignatureProperties. |
String |
getLocalName()
Returns the local name of the represented XML element.
|
List |
getProperties()
Returns an
umodifiable list of one or more SignaturePropertys that are
contained in this SignatureProperties. |
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)
Puts contained structures.
|
protected void |
unmarshalAttributes(NamedNodeMap attributes,
DOMCryptoContext context)
Unmarshals the
Id-attribute. |
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 signatureProperties_
SignaturePropertyImpls. (may not be null)protected String id_
Id-attribute value.public SignaturePropertiesImpl(DOMCryptoContext context, Node node) throws MarshalException
SignaturePropertiesImpl with
the specified context and node to unmarshal from.context - the contextnode - the node to unmarshal fromMarshalException - if an exception occurs during unmarshalingpublic SignaturePropertiesImpl(List signatureProperties, String id)
SignaturePropertiesImpl with
the specified list of SignaturePropertyImpls and Id
-attribute value.signatureProperties - a list of SignaturePropertyImplsid - the Id-attribute value (may be null)NullPointerException - if signaturePorperties is nullIllegalArgumentException - if signatureProperties is emptyClassCastException - if signaturePorperties contains any elements that are
not of type SignaturePropertyImplpublic String getLocalName()
DOMStructuregetLocalName in class DOMStructureDOMStructure.getLocalName()public String getId()
javax.xml.crypto.dsig.SignaturePropertiesSignatureProperties.getId in interface SignaturePropertiesSignatureProperties (or
null if not specified)SignatureProperties.getId()public List getProperties()
javax.xml.crypto.dsig.SignaturePropertiesumodifiable list of one or more SignaturePropertys that are
contained in this SignatureProperties.getProperties in interface SignaturePropertiesSignaturePropertysSignatureProperties.getProperties()protected List getChildStructures()
getChildStructures in class DOMStructureDOMStructures (may be empty, but never
null)protected void putChildStructure(DOMStructure childStructure) throws MarshalException
putChildStructure in class DOMStructurechildStructure - the unmarshalled child structureMarshalExceptionprotected 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
Id-attribute.unmarshalAttributes in class DOMStructureattributes - the Attributes to unmarshalcontext - the marshal contextMarshalException - if an exception occurs during unmarshaling© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC