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 classprivate classprivate classReferenceImplis an implementation ofReference. -
Field Summary
FieldsFields inherited from interface ReferenceList
DATA_REFERENCE, KEY_REFERENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a reference to this reference list.Returns anIteratorover all theReferences contained in thisReferenceList.booleanisEmpty()Indicates if theReferenceListis empty.newDataReference(String uri) DataReferencefactory method.newKeyReference(String uri) KeyReferencefactory method.voidRemoves a reference from theReferenceList.intsize()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:
addin interfaceReferenceList- Parameters:
reference- the reference to add.
-
remove
Removes a reference from theReferenceList.- Specified by:
removein interfaceReferenceList- Parameters:
reference- the reference to remove.
-
size
public int size()Returns the size of theReferenceList.- Specified by:
sizein interfaceReferenceList- Returns:
- the size of the
ReferenceList.
-
isEmpty
public boolean isEmpty()Indicates if theReferenceListis empty.- Specified by:
isEmptyin interfaceReferenceList- Returns:
trueif theReferenceListis empty, elsefalse.
-
getReferences
Returns anIteratorover all theReferences contained in thisReferenceList.- Specified by:
getReferencesin interfaceReferenceList- Returns:
- Iterator.
-
toElement
Element toElement() -
newDataReference
DataReferencefactory method. Returns aDataReference.- Specified by:
newDataReferencein interfaceReferenceList- Parameters:
uri-- Returns:
- a
DataReference.
-
newKeyReference
KeyReferencefactory method. Returns aKeyReference.- Specified by:
newKeyReferencein interfaceReferenceList- Parameters:
uri-- Returns:
- a
KeyReference.
-