Class AbstractClientPolicyConditionProvider<CONFIG extends ClientPolicyConditionConfigurationRepresentation>
- java.lang.Object
-
- org.keycloak.services.clientpolicy.condition.AbstractClientPolicyConditionProvider<CONFIG>
-
- All Implemented Interfaces:
Provider
,ClientPolicyConditionProvider<CONFIG>
- Direct Known Subclasses:
AnyClientCondition
,ClientAccessTypeCondition
,ClientRolesCondition
,ClientScopesCondition
,ClientUpdaterContextCondition
,ClientUpdaterSourceGroupsCondition
,ClientUpdaterSourceHostsCondition
,ClientUpdaterSourceRolesCondition
public abstract class AbstractClientPolicyConditionProvider<CONFIG extends ClientPolicyConditionConfigurationRepresentation> extends Object implements ClientPolicyConditionProvider<CONFIG>
- Author:
- Marek Posolda
-
-
Field Summary
Fields Modifier and Type Field Description protected CONFIG
configuration
protected KeycloakSession
session
-
Constructor Summary
Constructors Constructor Description AbstractClientPolicyConditionProvider(KeycloakSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isNegativeLogic()
tells whether the result of applyPolicy method is inverted or not as follows.void
setupConfiguration(CONFIG config)
setup this condition's configuration.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.services.clientpolicy.condition.ClientPolicyConditionProvider
applyPolicy, close, getConditionConfigurationClass, getName, getProviderId
-
-
-
-
Field Detail
-
session
protected final KeycloakSession session
-
configuration
protected CONFIG extends ClientPolicyConditionConfigurationRepresentation configuration
-
-
Constructor Detail
-
AbstractClientPolicyConditionProvider
public AbstractClientPolicyConditionProvider(KeycloakSession session)
-
-
Method Detail
-
setupConfiguration
public void setupConfiguration(CONFIG config)
Description copied from interface:ClientPolicyConditionProvider
setup this condition's configuration.- Specified by:
setupConfiguration
in interfaceClientPolicyConditionProvider<CONFIG extends ClientPolicyConditionConfigurationRepresentation>
-
isNegativeLogic
public boolean isNegativeLogic() throws ClientPolicyException
Description copied from interface:ClientPolicyConditionProvider
tells whether the result of applyPolicy method is inverted or not as follows. ClientPolicyVote.YES is inverted to ClientPolicyVote.NO ClientPolicyVote.NO is inverted to ClientPolicyVote.YES ClientPolicyVote.ABSTAIN remains unchanged- Specified by:
isNegativeLogic
in interfaceClientPolicyConditionProvider<CONFIG extends ClientPolicyConditionConfigurationRepresentation>
- Returns:
- true if the result of applyPolicy method is inverted.
- Throws:
ClientPolicyException
-
-