Interface ReferenceList
-
- All Known Implementing Classes:
XMLCipher.Factory.ReferenceListImpl
public interface ReferenceList
ReferenceList
is an element that contains pointers from a key value of anEncryptedKey
to items encrypted by that key value (EncryptedData
orEncryptedKey
elements).It is defined as follows:
- See Also:
Reference
-
-
Field Summary
Fields Modifier and Type Field Description static int
DATA_REFERENCE
DATA TAGstatic int
KEY_REFERENCE
KEY TAG
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(Reference reference)
Adds a reference to this reference list.java.util.Iterator<Reference>
getReferences()
Returns anIterator
over all theReference
s contained in thisReferenceList
.boolean
isEmpty()
Indicates if theReferenceList
is empty.Reference
newDataReference(java.lang.String uri)
DataReference
factory method.Reference
newKeyReference(java.lang.String uri)
KeyReference
factory method.void
remove(Reference reference)
Removes a reference from theReferenceList
.int
size()
Returns the size of theReferenceList
.
-
-
-
Field Detail
-
DATA_REFERENCE
static final int DATA_REFERENCE
DATA TAG- See Also:
- Constant Field Values
-
KEY_REFERENCE
static final int KEY_REFERENCE
KEY TAG- See Also:
- Constant Field Values
-
-
Method Detail
-
add
void add(Reference reference)
Adds a reference to this reference list.- Parameters:
reference
- the reference to add.- Throws:
java.lang.IllegalAccessException
- if theReference
is not an instance ofDataReference
orKeyReference
.
-
remove
void remove(Reference reference)
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
java.util.Iterator<Reference> getReferences()
Returns anIterator
over all theReference
s contained in thisReferenceList
.- Returns:
- Iterator.
-
newDataReference
Reference newDataReference(java.lang.String uri)
DataReference
factory method. Returns aDataReference
.- Parameters:
uri
-- Returns:
- a
DataReference
.
-
newKeyReference
Reference newKeyReference(java.lang.String uri)
KeyReference
factory method. Returns aKeyReference
.- Parameters:
uri
-- Returns:
- a
KeyReference
.
-
-