Class HttpAuthorizationMechanism
java.lang.Object
org.opends.server.protocols.http.authz.HttpAuthorizationMechanism
- All Implemented Interfaces:
Comparable<HttpAuthorizationMechanism>
,ConditionalFilters.ConditionalFilter
public abstract class HttpAuthorizationMechanism
extends Object
implements ConditionalFilters.ConditionalFilter, Comparable<HttpAuthorizationMechanism>
Provides foundation for http authorization mechanisms.
-
Constructor Summary
ConstructorDescriptionHttpAuthorizationMechanism
(Dn configDN, int priority) Create a newHttpAuthorizationMechanism
. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
Get theConditionalFilters.Condition
to evaluate.final org.forgerock.http.Filter
Get the filter which must be processed if theConditionalFilters.Condition
evaluates to true.toString()
-
Constructor Details
-
HttpAuthorizationMechanism
Create a newHttpAuthorizationMechanism
.- Parameters:
configDN
- DN where the configuration of thisHttpAuthorizationMechanism
resides.priority
- Priority of evaluation when multipleHttpAuthorizationMechanism
are present. Authorization mechanism with lower value will processed before the ones with bigger values.
-
-
Method Details
-
getFilter
public final org.forgerock.http.Filter getFilter()Description copied from interface:ConditionalFilters.ConditionalFilter
Get the filter which must be processed if theConditionalFilters.Condition
evaluates to true.- Specified by:
getFilter
in interfaceConditionalFilters.ConditionalFilter
- Returns:
- The filter to process.
-
getCondition
Description copied from interface:ConditionalFilters.ConditionalFilter
Get theConditionalFilters.Condition
to evaluate.- Specified by:
getCondition
in interfaceConditionalFilters.ConditionalFilter
- Returns:
- the
ConditionalFilters.Condition
to evaluate.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<HttpAuthorizationMechanism>
-
toString
-