Class ClientAccessTypeCondition
java.lang.Object
org.keycloak.services.clientpolicy.condition.AbstractClientPolicyConditionProvider<ClientAccessTypeCondition.Configuration>
org.keycloak.services.clientpolicy.condition.ClientAccessTypeCondition
- All Implemented Interfaces:
Provider
,ClientPolicyConditionProvider<ClientAccessTypeCondition.Configuration>
public class ClientAccessTypeCondition
extends AbstractClientPolicyConditionProvider<ClientAccessTypeCondition.Configuration>
- Author:
- Takashi Norimatsu
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.keycloak.services.clientpolicy.condition.AbstractClientPolicyConditionProvider
configuration, session
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplyPolicy
(ClientPolicyContext context) returns ABSTAIN if this condition is not evaluated due to its nature.Methods inherited from class org.keycloak.services.clientpolicy.condition.AbstractClientPolicyConditionProvider
isNegativeLogic, setupConfiguration
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
close, getName
-
Constructor Details
-
ClientAccessTypeCondition
-
-
Method Details
-
getConditionConfigurationClass
- Returns:
- Class, which should match the "config" argument of the
ClientPolicyConditionProvider.setupConfiguration(ClientPolicyConditionConfigurationRepresentation)
-
getProviderId
-
applyPolicy
Description copied from interface:ClientPolicyConditionProvider
returns ABSTAIN if this condition is not evaluated due to its nature. returns YES if the client satisfies this condition on the event defined inClientPolicyEvent
. If not, returns NO.- Parameters:
context
- - the context of the event.- Returns:
- returns ABSTAIN if this condition is not evaluated due to its nature.
- Throws:
ClientPolicyException
-