Package org.ow2.authzforce.core.pdp.api
Interface AttributeProvider
-
- All Known Subinterfaces:
CloseableNamedAttributeProvider
,NamedAttributeProvider
- All Known Implementing Classes:
BaseNamedAttributeProvider
public interface AttributeProvider
Attribute provider used to resolveAttributeDesignatorType
s in a specific way (e.g. from a specific attribute source)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <AV extends AttributeValue>
AttributeBag<AV>get(AttributeFqn attributeFQN, Datatype<AV> datatype, EvaluationContext context)
Provides values of the attribute matching the given designator data.
-
-
-
Method Detail
-
get
<AV extends AttributeValue> AttributeBag<AV> get(AttributeFqn attributeFQN, Datatype<AV> datatype, EvaluationContext context) throws IndeterminateEvaluationException
Provides values of the attribute matching the given designator data. If no value found, but no other error occurred, an empty bag is returned.- Parameters:
attributeFQN
- the global identifier (Category,Issuer,AttributeId) of the attribute to findcontext
- the request contextdatatype
- attribute datatype- Returns:
- the result of retrieving the attribute, which will be a bag of values of type defined by
returnDatatype
; empty bag iff no value found and no error occurred. - Throws:
UnsupportedOperationException
-attributeFQN
orreturnDatatype
are not supported (the PDP engine should try another attribute provider if any)IndeterminateEvaluationException
-attributeFQN
orreturnDatatype
are supported but some error occurred while trying to resolve the attribute value(s)
-
-