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
,ClientProtocolCondition
,ClientRolesCondition
,ClientScopesCondition
,ClientUpdaterContextCondition
,ClientUpdaterSourceGroupsCondition
,ClientUpdaterSourceHostsCondition
,ClientUpdaterSourceRolesCondition
public abstract class AbstractClientPolicyConditionProvider<CONFIG extends ClientPolicyConditionConfigurationRepresentation>
extends Object
implements ClientPolicyConditionProvider<CONFIG>
- Author:
- Marek Posolda
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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 Details
-
session
-
configuration
-
-
Constructor Details
-
AbstractClientPolicyConditionProvider
-
-
Method Details
-
setupConfiguration
Description copied from interface:ClientPolicyConditionProvider
setup this condition's configuration.- Specified by:
setupConfiguration
in interfaceClientPolicyConditionProvider<CONFIG extends ClientPolicyConditionConfigurationRepresentation>
-
isNegativeLogic
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
-