Top Description Fields Constructors Methods
org.keycloak.representations.idm.authorization

public final Enum DecisionStrategy

extends Enum<DecisionStrategy>
implements EnumWithStableIndex
Class Inheritance
All Implemented Interfaces
org.keycloak.util.EnumWithStableIndex
Imports
java.util.Map, .Objects, org.keycloak.util.EnumWithStableIndex

The decision strategy dictates how the policies associated with a given policy are evaluated and how a final decision is obtained.
Author
Pedro Igor

Field Summary

Modifier and TypeField and Description
public static final DecisionStrategy
AFFIRMATIVE

Defines that at least one policy must evaluate to a positive decision in order to the overall decision be also positive.

private static final Map<Integer, DecisionStrategy>
public static final DecisionStrategy
CONSENSUS

Defines that the number of positive decisions must be greater than the number of negative decisions.

private final int
public static final DecisionStrategy
UNANIMOUS

Defines that all policies must evaluate to a positive decision in order to the overall decision be also positive.

Constructor Summary

AccessConstructor and Description
private
DecisionStrategy(int stableIndex)

Method Summary

Modifier and TypeMethod and Description
public int
public static DecisionStrategy
public static DecisionStrategy
public static DecisionStrategy[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

AFFIRMATIVEback to summary
public static final DecisionStrategy AFFIRMATIVE

Defines that at least one policy must evaluate to a positive decision in order to the overall decision be also positive.

BY_IDback to summary
private static final Map<Integer, DecisionStrategy> BY_ID
CONSENSUSback to summary
public static final DecisionStrategy CONSENSUS

Defines that the number of positive decisions must be greater than the number of negative decisions. If the number of positive and negative is the same, the final decision will be negative.

stableIndexback to summary
private final int stableIndex
UNANIMOUSback to summary
public static final DecisionStrategy UNANIMOUS

Defines that all policies must evaluate to a positive decision in order to the overall decision be also positive.

Constructor Detail

DecisionStrategyback to summary
private DecisionStrategy(int stableIndex)

Method Detail

getStableIndexback to summary
public int getStableIndex()

Implements org.keycloak.util.EnumWithStableIndex.getStableIndex.

Returns:int

Doc from org.keycloak.util.EnumWithStableIndex.getStableIndex.

Unique numeric index which is stable in time and identifies an instance. Reusing the same index for two distinct entries of the same class is forbidden even if they cannot exist at the same time (e.g. one is deleted before other is introduced).

Annotations
@Override
valueOfback to summary
public static DecisionStrategy valueOf(String name)
valueOfIntegerback to summary
public static DecisionStrategy valueOfInteger(Integer id)
valuesback to summary
public static DecisionStrategy[] values()