@ConsumerType public interface Condition
|Modifier and Type||Field and Description|
A Condition object that will always evaluate to false and that is never postponed.
A Condition object that will always evaluate to true and that is never postponed.
|Modifier and Type||Method and Description|
Returns whether the Condition is mutable.
Returns whether the evaluation must be postponed until the end of the permission check.
Returns whether the Condition is satisfied.
Returns whether the specified set of Condition objects are satisfied.
static final Condition TRUE
static final Condition FALSE
false(or this Condition is immutable), then this Condition must be able to directly answer the
isSatisfied()method. In other words, isSatisfied() will return very quickly since no external sources, such as for example users or networks, need to be consulted.
This method must always return the same value whenever it is called so that the Conditional Permission Admin can cache its result.
trueto indicate the evaluation must be postponed. Otherwise,
falseif the evaluation can be performed immediately.
isSatisfied(Condition,Dictionary)at the end of the permission check.
trueto indicate the Conditions is satisfied. Otherwise,
falseif the Condition is not satisfied.
true) to immutable (
false) over time but never from immutable (
false) to mutable (
isSatisfied()can change. Otherwise,
falseif the value returned by
isSatisfied()will not change for this condition.
boolean isSatisfied(Condition conditions, java.util.Dictionary<java.lang.Object,java.lang.Object> context)
conditions- The array of Condition objects, which must all be of the same class and mutable. The receiver must be one of those Condition objects.
context- A Dictionary object that implementors can use to track state. If this method is invoked multiple times in the same permission check, the same Dictionary will be passed multiple times. The SecurityManager treats this Dictionary as an opaque object and simply creates an empty dictionary and passes it to subsequent invocations if multiple invocations are needed.
trueif all the Condition objects are satisfied. Otherwise,
falseif one of the Condition objects is not satisfied.
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0