Class XMLCipher.Factory.ReferenceListImpl
- java.lang.Object
-
- org.apache.xml.security.encryption.XMLCipher.Factory.ReferenceListImpl
-
- All Implemented Interfaces:
ReferenceList
- Enclosing class:
- XMLCipher.Factory
private class XMLCipher.Factory.ReferenceListImpl extends java.lang.Object implements ReferenceList
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
XMLCipher.Factory.ReferenceListImpl.DataReference
private class
XMLCipher.Factory.ReferenceListImpl.KeyReference
private class
XMLCipher.Factory.ReferenceListImpl.ReferenceImpl
ReferenceImpl
is an implementation ofReference
.
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Reference>
references
private java.lang.Class<?>
sentry
-
Fields inherited from interface org.apache.xml.security.encryption.ReferenceList
DATA_REFERENCE, KEY_REFERENCE
-
-
Constructor Summary
Constructors Constructor Description ReferenceListImpl(int type)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete 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
.(package private) org.w3c.dom.Element
toElement()
-
-
-
Field Detail
-
sentry
private java.lang.Class<?> sentry
-
references
private java.util.List<Reference> references
-
-
Method Detail
-
add
public void add(Reference reference)
Adds a reference to this reference list.- Specified by:
add
in interfaceReferenceList
- Parameters:
reference
- the reference to add.
-
remove
public void remove(Reference reference)
Removes a reference from theReferenceList
.- Specified by:
remove
in interfaceReferenceList
- Parameters:
reference
- the reference to remove.
-
size
public int size()
Returns the size of theReferenceList
.- Specified by:
size
in interfaceReferenceList
- Returns:
- the size of the
ReferenceList
.
-
isEmpty
public boolean isEmpty()
Indicates if theReferenceList
is empty.- Specified by:
isEmpty
in interfaceReferenceList
- Returns:
true
if theReferenceList
is empty, elsefalse
.
-
getReferences
public java.util.Iterator<Reference> getReferences()
Returns anIterator
over all theReference
s contained in thisReferenceList
.- Specified by:
getReferences
in interfaceReferenceList
- Returns:
- Iterator.
-
toElement
org.w3c.dom.Element toElement()
-
newDataReference
public Reference newDataReference(java.lang.String uri)
DataReference
factory method. Returns aDataReference
.- Specified by:
newDataReference
in interfaceReferenceList
- Returns:
- a
DataReference
.
-
newKeyReference
public Reference newKeyReference(java.lang.String uri)
KeyReference
factory method. Returns aKeyReference
.- Specified by:
newKeyReference
in interfaceReferenceList
- Returns:
- a
KeyReference
.
-
-