Class XMLCipher.Factory.ReferenceListImpl.ReferenceImpl

java.lang.Object
org.apache.xml.security.encryption.XMLCipher.Factory.ReferenceListImpl.ReferenceImpl
All Implemented Interfaces:
Reference
Direct Known Subclasses:
XMLCipher.Factory.ReferenceListImpl.DataReference, XMLCipher.Factory.ReferenceListImpl.KeyReference
Enclosing class:
XMLCipher.Factory.ReferenceListImpl

private abstract class XMLCipher.Factory.ReferenceListImpl.ReferenceImpl extends Object implements Reference
ReferenceImpl is an implementation of Reference.
See Also:
  • Field Details

    • uri

      private String uri
    • referenceInformation

      private List<Element> referenceInformation
  • Constructor Details

    • ReferenceImpl

      ReferenceImpl(String uri)
  • Method Details

    • getType

      public abstract String getType()
      Returns the Element tag name for this Reference.
      Specified by:
      getType in interface Reference
      Returns:
      the tag name of this Reference.
    • getURI

      public String getURI()
      Returns a URI that points to an Element that were encrypted using the key defined in the enclosing EncryptedKey element.
      Specified by:
      getURI in interface Reference
      Returns:
      an Uniform Resource Identifier that qualifies an EncryptedType.
    • getElementRetrievalInformation

      public Iterator<Element> getElementRetrievalInformation()
      Returns an Iterator over all the child elements contained in this Reference that will aid the recipient in retrieving the EncryptedKey and/or EncryptedData elements. These could include information such as XPath transforms, decompression transforms, or information on how to retrieve the elements from a document storage facility.
      Specified by:
      getElementRetrievalInformation in interface Reference
      Returns:
      child elements.
    • setURI

      public void setURI(String uri)
      Sets a URI that points to an Element that were encrypted using the key defined in the enclosing EncryptedKey element.
      Specified by:
      setURI in interface Reference
      Parameters:
      uri - the Uniform Resource Identifier that qualifies an EncryptedType.
    • removeElementRetrievalInformation

      public void removeElementRetrievalInformation(Element node)
      Removes the specified retrieval information.
      Specified by:
      removeElementRetrievalInformation in interface Reference
    • addElementRetrievalInformation

      public void addElementRetrievalInformation(Element node)
      Adds retrieval information.
      Specified by:
      addElementRetrievalInformation in interface Reference
    • toElement

      public Element toElement()
      Returns:
      the XML Element form of that Reference