Interface 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:
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDATA TAGstatic final intKEY TAG -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a reference to this reference list.Returns anIteratorover all theReferences contained in thisReferenceList.booleanisEmpty()Indicates if theReferenceListis empty.newDataReference(String uri) DataReferencefactory method.newKeyReference(String uri) KeyReferencefactory method.voidRemoves a reference from theReferenceList.intsize()Returns the size of theReferenceList.
-
Field Details
-
DATA_REFERENCE
static final int DATA_REFERENCEDATA TAG- See Also:
-
KEY_REFERENCE
static final int KEY_REFERENCEKEY TAG- See Also:
-
-
Method Details
-
add
Adds a reference to this reference list.- Parameters:
reference- the reference to add.- Throws:
IllegalAccessException- if theReferenceis not an instance ofDataReferenceorKeyReference.
-
remove
Removes a reference from theReferenceList.- Parameters:
reference- the reference to remove.
-
size
int size()Returns the size of theReferenceList.- Returns:
- the size of the
ReferenceList.
-
isEmpty
boolean isEmpty()Indicates if theReferenceListis empty.- Returns:
trueif theReferenceListis empty, elsefalse.
-
getReferences
Returns anIteratorover all theReferences contained in thisReferenceList.- Returns:
- Iterator.
-
newDataReference
DataReferencefactory method. Returns aDataReference.- Parameters:
uri-- Returns:
- a
DataReference.
-
newKeyReference
KeyReferencefactory method. Returns aKeyReference.- Parameters:
uri-- Returns:
- a
KeyReference.
-