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

public final Enum Logic

extends Enum<Logic>
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
private static final Map<Integer, Logic>
public static final Logic
NEGATIVE

Defines that this policy uses a logical negation.

public static final Logic
POSITIVE

Defines that this policy follows a positive logic.

private final int

Constructor Summary

AccessConstructor and Description
private
Logic(int stableIndex)

Method Summary

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

Field Detail

BY_IDback to summary
private static final Map<Integer, Logic> BY_ID
NEGATIVEback to summary
public static final Logic NEGATIVE

Defines that this policy uses a logical negation. In other words, the final decision would be a negative of the policy outcome.

POSITIVEback to summary
public static final Logic POSITIVE

Defines that this policy follows a positive logic. In other words, the final decision is the policy outcome.

stableIndexback to summary
private final int stableIndex

Constructor Detail

Logicback to summary
private Logic(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 Logic valueOf(String name)
valueOfIntegerback to summary
public static Logic valueOfInteger(Integer id)
valuesback to summary
public static Logic[] values()