Class XMLCipher.Factory.ReferenceListImpl

java.lang.Object
org.apache.xml.security.encryption.XMLCipher.Factory.ReferenceListImpl
All Implemented Interfaces:
ReferenceList
Enclosing class:
XMLCipher.Factory

private class XMLCipher.Factory.ReferenceListImpl extends Object implements ReferenceList
  • Field Details

  • Constructor Details

    • ReferenceListImpl

      public ReferenceListImpl(int type)
      Constructor.
      Parameters:
      type -
  • Method Details

    • add

      public void add(Reference reference)
      Adds a reference to this reference list.
      Specified by:
      add in interface ReferenceList
      Parameters:
      reference - the reference to add.
    • remove

      public void remove(Reference reference)
      Removes a reference from the ReferenceList.
      Specified by:
      remove in interface ReferenceList
      Parameters:
      reference - the reference to remove.
    • size

      public int size()
      Returns the size of the ReferenceList.
      Specified by:
      size in interface ReferenceList
      Returns:
      the size of the ReferenceList.
    • isEmpty

      public boolean isEmpty()
      Indicates if the ReferenceList is empty.
      Specified by:
      isEmpty in interface ReferenceList
      Returns:
      true if the ReferenceList is empty, else false.
    • getReferences

      public Iterator<Reference> getReferences()
      Returns an Iterator over all the References contained in this ReferenceList.
      Specified by:
      getReferences in interface ReferenceList
      Returns:
      Iterator.
    • toElement

      Element toElement()
    • newDataReference

      public Reference newDataReference(String uri)
      DataReference factory method. Returns a DataReference.
      Specified by:
      newDataReference in interface ReferenceList
      Returns:
      a DataReference.
    • newKeyReference

      public Reference newKeyReference(String uri)
      KeyReference factory method. Returns a KeyReference.
      Specified by:
      newKeyReference in interface ReferenceList
      Returns:
      a KeyReference.