Skip navigation links 
 
oracle.security.xmlsec.enc
Class XECipherReference
java.lang.Object
  
oracle.security.xmlsec.util.XMLNode
      
oracle.security.xmlsec.util.XMLElement
          
oracle.security.xmlsec.dsig.ObjectReference
              
oracle.security.xmlsec.enc.XECipherReference
- 
public class XECipherReference
 
- extends ObjectReference
 
The CipherReference element that identifies a source containing the encrypted data.
- See Also:
 
XECipherData 
 
 
  
 
 
  
 
| Constructor Summary | 
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. | 
  
 
| Method Summary | 
 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. | 
 
 
| Methods inherited from class oracle.security.xmlsec.util.XMLElement | 
addNSPrefixAttr, 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, setDefaultNSPrefix | 
 
| Methods inherited from class oracle.security.xmlsec.util.XMLNode | 
appendChild, 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, toStringXML | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
XECipherReference
public XECipherReference(org.w3c.dom.Element cipherRef)
                  throws org.w3c.dom.DOMException
- Create a 
XECipherReference instance from the given CipherReference element.
- Parameters:
 
cipherRef - A CipherReference element. 
- Throws:
 
org.w3c.dom.DOMException 
 
XECipherReference
public XECipherReference(org.w3c.dom.Element cipherRef,
                         java.lang.String systemId)
                  throws org.w3c.dom.DOMException
- Create a 
XECipherReference instance from the given CipherReference element.
- Parameters:
 
cipherRef - A CipherReference element. 
systemId - The URI string system ID for this element. 
- Throws:
 
org.w3c.dom.DOMException 
- Since:
 
- 2.0
 
- See Also:
 
XMLNode.setSystemId(java.lang.String) 
 
addTransform
public void addTransform(XSAlgorithmIdentifier trans)
                  throws org.w3c.dom.DOMException
- Adds a Transform algorithm to the list of Transforms to be applied to the referenced cipher value.
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.
 
- 
- Overrides:
 
addTransform in class ObjectReference 
 
- 
- Parameters:
 
trans - An XSAlgorithmIdentifier instance. 
- Throws:
 
org.w3c.dom.DOMException 
 
getTransforms
public java.util.Vector getTransforms()
- Returns a list of the XML transforms to be applied to the referenced cipher value.
 
- 
- Overrides:
 
getTransforms in class ObjectReference 
 
- 
- Returns:
 
- A 
Vector of XSAlgorithmIdentifiers. 
 
getCipherValue
public byte[] getCipherValue()
                      throws ReferenceException
- Dereferences this CipherReference and returns the octets of the cipher value being referenced.
 
- 
- Returns:
 
- The cipher value bytes, or 
null if none resulted from the dereferencing operation. 
- Throws:
 
ReferenceException 
 
getCipherValueAsStream
public java.io.InputStream getCipherValueAsStream()
                                           throws ReferenceException
- 
- Throws:
 
ReferenceException 
 
Skip navigation links 
 
Copyright © 2005, 2011 , Oracle. All rights reserved.