Class XMLCipher.Factory.ReferenceListImpl
java.lang.Object
org.apache.xml.security.encryption.XMLCipher.Factory.ReferenceListImpl
- All Implemented Interfaces:
ReferenceList
- Enclosing class:
XMLCipher.Factory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
private class
private class
ReferenceImpl
is an implementation ofReference
. -
Field Summary
FieldsFields inherited from interface org.apache.xml.security.encryption.ReferenceList
DATA_REFERENCE, KEY_REFERENCE
-
Constructor Summary
Constructors -
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
.(package private) Element
-
Field Details
-
sentry
-
references
-
-
Constructor Details
-
ReferenceListImpl
public ReferenceListImpl(int type) Constructor.- Parameters:
type
-
-
-
Method Details
-
add
Adds a reference to this reference list.- Specified by:
add
in interfaceReferenceList
- Parameters:
reference
- the reference to add.
-
remove
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
Returns anIterator
over all theReference
s contained in thisReferenceList
.- Specified by:
getReferences
in interfaceReferenceList
- Returns:
- Iterator.
-
toElement
Element toElement() -
newDataReference
DataReference
factory method. Returns aDataReference
.- Specified by:
newDataReference
in interfaceReferenceList
- Parameters:
uri
-- Returns:
- a
DataReference
.
-
newKeyReference
KeyReference
factory method. Returns aKeyReference
.- Specified by:
newKeyReference
in interfaceReferenceList
- Parameters:
uri
-- Returns:
- a
KeyReference
.
-