public class CipherReferenceImpl extends ReferenceType implements CipherReference, DOMURIReference
CipherReference element that supports
the DOM XML representation and processing mechanism.ReferenceType.SubTreeNodeSetFixDOMStructure.NodeWrappercachedCanonInputData_, cachedDereferencedData_, cachedDigestInput_, id_, result_, transforms_type_, uri_implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALED| Constructor and Description |
|---|
CipherReferenceImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
CipherReferenceImpl with the
specified context and node to unmarshal from. |
CipherReferenceImpl(String uri,
List transforms)
Creates a new instance of this
CipherReferenceImpl with the
specified URI reference and list of TransformImpls. |
CipherReferenceImpl(String uri,
List transforms,
String type,
String id)
Creates a new instance of this
ReferenceType with the
specified URI reference, a list of Transform
s, Type-attribute value and Id-attribute value. |
| 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.
|
List |
getTransforms()
Returns an
unmodifiable list of Transforms that are
contained in this reference. |
String |
getType()
Returns the type of data referenced by this URI.
|
String |
getURI()
Returns the URI of the referenced data object.
|
protected void |
marshalAttributes(DOMCryptoContext context,
Element parent)
Marshals the
URI and Type attributes. |
protected void |
putChildStructure(DOMStructure childStructure)
Puts the
TransformsImpl child structure. |
protected void |
unmarshalAttributes(NamedNodeMap attributes,
DOMCryptoContext context)
Unmarshals the
URI and Type attributes. |
dereference, dereferenceAndCanonicalize, dereferenceButDontTransform, getCanonInputData, getChildStructures, getDereferencedData, getId, marshalIDAttributegetHereaddBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructureVersion, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshal, marshalElement, newIDforLookUp, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, toString, unmarshal, unmarshalElement, unmarshalIDAttribute, unmarshalStructures, wrapNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFeatureSupportedgetHerepublic CipherReferenceImpl(DOMCryptoContext context, Node node) throws MarshalException
CipherReferenceImpl with the
specified context and node to unmarshal from.context - the contextnode - the node to unmarshal fromMarshalException - if an exception occurs during unmarshalingpublic CipherReferenceImpl(String uri, List transforms, String type, String id)
ReferenceType with the
specified URI reference, a list of Transform
s, Type-attribute value and Id-attribute value.uri - the URI referencetransforms - a list of Transforms (may be
null or empty)type - the value of the Type-attributeid - the value of the Id-attributeIllegalArgumentException - if uri is not RFC 2396 compliantpublic CipherReferenceImpl(String uri, List transforms)
CipherReferenceImpl with the
specified URI reference and list of TransformImpls.uri - the URI referencetransforms - a list of TransformImpls (may be null or empty)NullPointerException - if uri is nullIllegalArgumentException - if uri is not RFC 2396 compliantClassCastException - if any of the transforms is not of type
TransformImplpublic List getTransforms()
ReferenceTypeunmodifiable list of Transforms that are
contained in this reference.getTransforms in interface CipherReferencegetTransforms in class ReferenceTypeTransforms (may be empty but
never null)CipherReference.getTransforms()public String getURI()
javax.xml.crypto.URIReferencegetURI in interface URIReferencegetURI in class DOMURIReferenceImplnull if not specified)URIReference.getURI()public String getType()
javax.xml.crypto.URIReferencegetType in interface URIReferencegetType in class DOMURIReferenceImplnull if
not specified)URIReference.getType()public String getLocalName()
DOMStructuregetLocalName in class ReferenceTypeDOMStructure.getLocalName()public String getNamespace()
DOMStructuregetNamespace in class DOMStructureDOMStructure.getNamespace()protected void putChildStructure(DOMStructure childStructure) throws MarshalException
ReferenceTypeTransformsImpl child structure.putChildStructure in class ReferenceTypechildStructure - the unmarshalled child structureMarshalExceptionDOMStructure.putChildStructure(iaik.xml.crypto.dom.DOMStructure)protected void marshalAttributes(DOMCryptoContext context, Element parent) throws MarshalException
DOMURIReferenceImplURI and Type attributes.marshalAttributes in class DOMURIReferenceImplcontext - 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)protected void unmarshalAttributes(NamedNodeMap attributes, DOMCryptoContext context) throws MarshalException
DOMURIReferenceImplURI and Type attributes.unmarshalAttributes in class ReferenceTypeattributes - 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