Module org.apache.santuario.xmlsec
Interface ReferenceList
-
public interface ReferenceListReferenceListis an element that contains pointers from a key value of anEncryptedKeyto items encrypted by that key value (EncryptedDataorEncryptedKeyelements).It is defined as follows:
- See Also:
Reference
-
-
Field Summary
Fields Modifier and Type Field Description static intDATA_REFERENCEDATA TAGstatic intKEY_REFERENCEKEY TAG
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(Reference reference)Adds a reference to this reference list.Iterator<Reference>getReferences()Returns anIteratorover all theReferences contained in thisReferenceList.booleanisEmpty()Indicates if theReferenceListis empty.ReferencenewDataReference(String uri)DataReferencefactory method.ReferencenewKeyReference(String uri)KeyReferencefactory method.voidremove(Reference reference)Removes a reference from theReferenceList.intsize()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:
IllegalAccessException- if theReferenceis not an instance ofDataReferenceorKeyReference.
-
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 theReferenceListis empty.- Returns:
trueif theReferenceListis empty, elsefalse.
-
getReferences
Iterator<Reference> getReferences()
Returns anIteratorover all theReferences contained in thisReferenceList.- Returns:
- Iterator.
-
newDataReference
Reference newDataReference(String uri)
DataReferencefactory method. Returns aDataReference.- Parameters:
uri-- Returns:
- a
DataReference.
-
-