Class ClientUpdaterSourceRolesCondition
- java.lang.Object
-
- org.keycloak.services.clientpolicy.condition.AbstractClientPolicyConditionProvider<ClientUpdaterSourceRolesCondition.Configuration>
-
- org.keycloak.services.clientpolicy.condition.ClientUpdaterSourceRolesCondition
-
- All Implemented Interfaces:
Provider
,ClientPolicyConditionProvider<ClientUpdaterSourceRolesCondition.Configuration>
public class ClientUpdaterSourceRolesCondition extends AbstractClientPolicyConditionProvider<ClientUpdaterSourceRolesCondition.Configuration>
- Author:
- Takashi Norimatsu
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClientUpdaterSourceRolesCondition.Configuration
-
Field Summary
-
Fields inherited from class org.keycloak.services.clientpolicy.condition.AbstractClientPolicyConditionProvider
configuration, session
-
-
Constructor Summary
Constructors Constructor Description ClientUpdaterSourceRolesCondition(KeycloakSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientPolicyVote
applyPolicy(ClientPolicyContext context)
returns ABSTAIN if this condition is not evaluated due to its nature.Class<ClientUpdaterSourceRolesCondition.Configuration>
getConditionConfigurationClass()
String
getProviderId()
-
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 Detail
-
ClientUpdaterSourceRolesCondition
public ClientUpdaterSourceRolesCondition(KeycloakSession session)
-
-
Method Detail
-
getConditionConfigurationClass
public Class<ClientUpdaterSourceRolesCondition.Configuration> getConditionConfigurationClass()
- Returns:
- Class, which should match the "config" argument of the
ClientPolicyConditionProvider.setupConfiguration(ClientPolicyConditionConfigurationRepresentation)
-
getProviderId
public String getProviderId()
-
applyPolicy
public ClientPolicyVote applyPolicy(ClientPolicyContext context) throws ClientPolicyException
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
-
-