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 classXMLCipher.Factory.ReferenceListImpl.DataReferenceprivate classXMLCipher.Factory.ReferenceListImpl.KeyReferenceprivate classXMLCipher.Factory.ReferenceListImpl.ReferenceImplReferenceImplis an implementation ofReference.
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Reference>referencesprivate 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 voidadd(Reference reference)Adds a reference to this reference list.java.util.Iterator<Reference>getReferences()Returns anIteratorover all theReferences contained in thisReferenceList.booleanisEmpty()Indicates if theReferenceListis empty.ReferencenewDataReference(java.lang.String uri)DataReferencefactory method.ReferencenewKeyReference(java.lang.String uri)KeyReferencefactory method.voidremove(Reference reference)Removes a reference from theReferenceList.intsize()Returns the size of theReferenceList.(package private) org.w3c.dom.ElementtoElement()
-
-
-
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:
addin interfaceReferenceList- Parameters:
reference- the reference to add.
-
remove
public void remove(Reference reference)
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
public java.util.Iterator<Reference> getReferences()
Returns anIteratorover all theReferences contained in thisReferenceList.- Specified by:
getReferencesin interfaceReferenceList- Returns:
- Iterator.
-
toElement
org.w3c.dom.Element toElement()
-
newDataReference
public Reference newDataReference(java.lang.String uri)
DataReferencefactory method. Returns aDataReference.- Specified by:
newDataReferencein interfaceReferenceList- Returns:
- a
DataReference.
-
newKeyReference
public Reference newKeyReference(java.lang.String uri)
KeyReferencefactory method. Returns aKeyReference.- Specified by:
newKeyReferencein interfaceReferenceList- Returns:
- a
KeyReference.
-
-