Class HttpAuthorizationMechanism<T extends HttpAuthorizationMechanismCfg>
- java.lang.Object
-
- org.opends.server.protocols.http.authz.HttpAuthorizationMechanism<T>
-
- Type Parameters:
T
- Type of the configuration specific to theHttpAuthorizationMechanism
.
- All Implemented Interfaces:
Comparable<HttpAuthorizationMechanism<?>>
,ConditionalFilters.ConditionalFilter
public abstract class HttpAuthorizationMechanism<T extends HttpAuthorizationMechanismCfg> extends Object implements ConditionalFilters.ConditionalFilter, Comparable<HttpAuthorizationMechanism<?>>
Provides foundation for http authorization mechanisms.
-
-
Constructor Summary
Constructors Constructor Description HttpAuthorizationMechanism(Dn configDN, int priority)
Create a newHttpAuthorizationMechanism
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(HttpAuthorizationMechanism<?> other)
ConditionalFilters.Condition
getCondition()
Get theConditionalFilters.Condition
to evaluate.org.forgerock.http.Filter
getFilter()
Get the filter which must be processed if theConditionalFilters.Condition
evaluates to true.String
toString()
-
-
-
Constructor Detail
-
HttpAuthorizationMechanism
public HttpAuthorizationMechanism(Dn configDN, int priority)
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 Detail
-
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
public final ConditionalFilters.Condition 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
public final int compareTo(HttpAuthorizationMechanism<?> other)
- Specified by:
compareTo
in interfaceComparable<T extends HttpAuthorizationMechanismCfg>
-
-