FileDocCategorySizeDatePackage
ReferenceList.javaAPI DocJava SE 6 API3069Tue Jun 10 00:23:02 BST 2008com.sun.org.apache.xml.internal.security.encryption

ReferenceList

public interface ReferenceList
ReferenceList is an element that contains pointers from a key value of an EncryptedKey to items encrypted by that key value (EncryptedData or EncryptedKey elements).

It is defined as follows:

<element name='ReferenceList'> <complexType> <choice minOccurs='1' maxOccurs='unbounded'> <element name='DataReference' type='xenc:ReferenceType'/> <element name='KeyReference' type='xenc:ReferenceType'/> </choice> </complexType> </element>
author
Axl Mattheus
see
Reference

Fields Summary
public static final int
DATA_REFERENCE
DATA TAG
public static final int
KEY_REFERENCE
KEY TAG
Constructors Summary
Methods Summary
public voidadd(Reference reference)
Adds a reference to this reference list.

param
reference the reference to add.
throws
IllegalAccessException if the Reference is not an instance of DataReference or KeyReference.

public java.util.IteratorgetReferences()
Returns an Iterator over all the References contatined in this ReferenceList.

return
Iterator.

public booleanisEmpty()
Indicates if the ReferenceList is empty.

return
true if the ReferenceList is empty, else false.

public ReferencenewDataReference(java.lang.String uri)
DataReference factory method. Returns a DataReference.

param
uri
return

public ReferencenewKeyReference(java.lang.String uri)
KeyReference factory method. Returns a KeyReference.

param
uri
return

public voidremove(Reference reference)
Removes a reference from the ReferenceList.

param
reference the reference to remove.

public intsize()
Returns the size of the ReferenceList.

return
the size of the ReferenceList.