Class MaxClientsClientRegistrationPolicyFactory
java.lang.Object
org.keycloak.services.clientregistration.policy.AbstractClientRegistrationPolicyFactory
org.keycloak.services.clientregistration.policy.impl.MaxClientsClientRegistrationPolicyFactory
- All Implemented Interfaces:
ComponentFactory<ClientRegistrationPolicy,
,ClientRegistrationPolicy> ConfiguredProvider
,ProviderFactory<ClientRegistrationPolicy>
,ClientRegistrationPolicyFactory
public class MaxClientsClientRegistrationPolicyFactory
extends AbstractClientRegistrationPolicyFactory
- Author:
- Marek Posolda
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final String
static final ProviderConfigProperty
static final String
Fields inherited from class org.keycloak.services.clientregistration.policy.AbstractClientRegistrationPolicyFactory
sessionFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(KeycloakSession session, ComponentModel model) getId()
void
validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) Called before a component is created or updated.Methods inherited from class org.keycloak.services.clientregistration.policy.AbstractClientRegistrationPolicyFactory
close, getConfigProperties, init, postInit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.component.ComponentFactory
create, getCommonProviderConfigProperties, getTypeMetadata, onCreate, onUpdate, preRemove
Methods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfig
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
Field Details
-
MAX_CLIENTS
- See Also:
-
MAX_CLIENTS_PROPERTY
-
DEFAULT_MAX_CLIENTS
public static final int DEFAULT_MAX_CLIENTS- See Also:
-
PROVIDER_ID
- See Also:
-
-
Constructor Details
-
MaxClientsClientRegistrationPolicyFactory
public MaxClientsClientRegistrationPolicyFactory()
-
-
Method Details
-
create
-
getHelpText
-
getConfigProperties
-
getId
-
validateConfiguration
public void validateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel config) throws ComponentValidationException Description copied from interface:ComponentFactory
Called before a component is created or updated. Allows you to validate the configuration- Specified by:
validateConfiguration
in interfaceComponentFactory<ClientRegistrationPolicy,
ClientRegistrationPolicy> - Overrides:
validateConfiguration
in classAbstractClientRegistrationPolicyFactory
- Throws:
ComponentValidationException
-