Interface ReferenceList
- All Known Implementing Classes:
XMLCipher.Factory.ReferenceListImpl
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 int
DATA TAGstatic final int
KEY TAG -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a reference to this reference list.Returns anIterator
over all theReference
s contained in thisReferenceList
.boolean
isEmpty()
Indicates if theReferenceList
is empty.newDataReference
(String uri) DataReference
factory method.newKeyReference
(String uri) KeyReference
factory method.void
Removes a reference from theReferenceList
.int
size()
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 theReference
is not an instance ofDataReference
orKeyReference
.
-
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 theReferenceList
is empty.- Returns:
true
if theReferenceList
is empty, elsefalse
.
-
getReferences
Returns anIterator
over all theReference
s contained in thisReferenceList
.- Returns:
- Iterator.
-
newDataReference
DataReference
factory method. Returns aDataReference
.- Parameters:
uri
-- Returns:
- a
DataReference
.
-
newKeyReference
KeyReference
factory method. Returns aKeyReference
.- Parameters:
uri
-- Returns:
- a
KeyReference
.
-