public class XECipherReference extends ObjectReference
XECipherDataObjectReference.CIDResolver| Constructor and Description |
|---|
XECipherReference(org.w3c.dom.Element cipherRef)
Create a
XECipherReference instance from the given CipherReference element. |
XECipherReference(org.w3c.dom.Element cipherRef, java.lang.String systemId)
Create a
XECipherReference instance from the given CipherReference element. |
| Modifier and Type | Method and Description |
|---|---|
void |
addTransform(XSAlgorithmIdentifier trans)
Adds a Transform algorithm to the list of Transforms to be applied to the referenced cipher value.
|
byte[] |
getCipherValue()
Dereferences this CipherReference and returns the octets of the cipher value being referenced.
|
java.io.InputStream |
getCipherValueAsStream() |
java.util.Vector |
getTransforms()
Returns a list of the XML transforms to be applied to the referenced cipher value.
|
dereference, dereference, getURI, setCIDResolver, setURIaddNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefixappendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXMLpublic XECipherReference(org.w3c.dom.Element cipherRef)
throws org.w3c.dom.DOMException
XECipherReference instance from the given CipherReference element.cipherRef - A CipherReference element.org.w3c.dom.DOMExceptionpublic XECipherReference(org.w3c.dom.Element cipherRef,
java.lang.String systemId)
throws org.w3c.dom.DOMException
XECipherReference instance from the given CipherReference element.cipherRef - A CipherReference element.systemId - The URI string system ID for this element.org.w3c.dom.DOMExceptionXMLNode.setSystemId(java.lang.String)public void addTransform(XSAlgorithmIdentifier trans) throws org.w3c.dom.DOMException
When the first Transform is added, a Transforms element is created as a child to this XECipherReference to contain the sequence of Transform elements. This Transforms element is in the XML-ENC namespace, while each Transform element always has the XML-DSIG namespace.
addTransform in class ObjectReferencetrans - An XSAlgorithmIdentifier instance.org.w3c.dom.DOMExceptionpublic java.util.Vector getTransforms()
getTransforms in class ObjectReferenceVector of XSAlgorithmIdentifiers.public byte[] getCipherValue()
throws ReferenceException
null if none resulted from the dereferencing operation.ReferenceExceptionpublic java.io.InputStream getCipherValueAsStream()
throws ReferenceException
ReferenceException