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
Fields Modifier and Type Field Description static int
DEFAULT_MAX_CLIENTS
static String
MAX_CLIENTS
static ProviderConfigProperty
MAX_CLIENTS_PROPERTY
static String
PROVIDER_ID
-
Fields inherited from class org.keycloak.services.clientregistration.policy.AbstractClientRegistrationPolicyFactory
sessionFactory
-
-
Constructor Summary
Constructors Constructor Description MaxClientsClientRegistrationPolicyFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientRegistrationPolicy
create(KeycloakSession session, ComponentModel model)
List<ProviderConfigProperty>
getConfigProperties()
String
getHelpText()
String
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 Detail
-
MAX_CLIENTS
public static final String MAX_CLIENTS
- See Also:
- Constant Field Values
-
MAX_CLIENTS_PROPERTY
public static final ProviderConfigProperty MAX_CLIENTS_PROPERTY
-
DEFAULT_MAX_CLIENTS
public static final int DEFAULT_MAX_CLIENTS
- See Also:
- Constant Field Values
-
PROVIDER_ID
public static final String PROVIDER_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public ClientRegistrationPolicy create(KeycloakSession session, ComponentModel model)
-
getHelpText
public String getHelpText()
-
getConfigProperties
public List<ProviderConfigProperty> getConfigProperties()
-
getId
public String 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
-
-