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:
Reference| Modifier and Type | Field | Description |
|---|---|---|
static int |
DATA_REFERENCE |
DATA TAG
|
static int |
KEY_REFERENCE |
KEY TAG
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(Reference reference) |
Adds a reference to this reference list.
|
Iterator<Reference> |
getReferences() |
Returns an
Iterator over all the References
contained in this ReferenceList. |
boolean |
isEmpty() |
Indicates if the
ReferenceList is empty. |
Reference |
newDataReference(String uri) |
DataReference factory method. |
Reference |
newKeyReference(String uri) |
KeyReference factory method. |
void |
remove(Reference reference) |
Removes a reference from the
ReferenceList. |
int |
size() |
Returns the size of the
ReferenceList. |
static final int DATA_REFERENCE
static final int KEY_REFERENCE
void add(Reference reference)
reference - the reference to add.IllegalAccessException - if the Reference is not an
instance of DataReference or KeyReference.void remove(Reference reference)
ReferenceList.reference - the reference to remove.int size()
ReferenceList.ReferenceList.boolean isEmpty()
ReferenceList is empty.true if the ReferenceList is
empty, else false.Iterator<Reference> getReferences()
Iterator over all the References
contained in this ReferenceList.Reference newDataReference(String uri)
DataReference factory method. Returns a
DataReference.uri - DataReference.Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.