Class AttributeBag<AV extends AttributeValue>
- java.lang.Object
-
- org.ow2.authzforce.core.pdp.api.value.Bag<AV>
-
- org.ow2.authzforce.core.pdp.api.value.AttributeBag<AV>
-
- Type Parameters:
AV
- type of every element in the bag
public class AttributeBag<AV extends AttributeValue> extends Bag<AV>
Attribute bag (section 7.3.2 of XACML specification), i.e.Bag
with extra metadata such as the identifier of the attribute value provider (where does the value come from, e.g. Request, or PDP, or custom attribute provider module...)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ow2.authzforce.core.pdp.api.value.Bag
Bag.Validator
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AttributeBag(Datatype<AV> elementDatatype, com.google.common.collect.ImmutableMultiset<AV> elements, Optional<AttributeSource> attributeValueSource)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<AttributeSource>
getSource()
Get the source of this attribute bag-
Methods inherited from class org.ow2.authzforce.core.pdp.api.value.Bag
contains, elements, equals, getElementDatatype, getReasonWhyEmpty, getSingleElement, hashCode, isEmpty, iterator, size, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
AttributeBag
protected AttributeBag(Datatype<AV> elementDatatype, com.google.common.collect.ImmutableMultiset<AV> elements, Optional<AttributeSource> attributeValueSource)
Constructor- Parameters:
elementDatatype
- bag element datatypeelements
- bag elements.attributeValueSource
- source of the attribute value (where does it come from? Request, PDP, custom attribute provider module...); not present iffelements.isEmpty()
(no value found anywhere)
-
-
Method Detail
-
getSource
public final Optional<AttributeSource> getSource()
Get the source of this attribute bag- Returns:
- source
-
-