Class UserSessionLimitsAuthenticatorFactory
- java.lang.Object
-
- org.keycloak.authentication.authenticators.sessionlimits.UserSessionLimitsAuthenticatorFactory
-
- All Implemented Interfaces:
org.keycloak.authentication.AuthenticatorFactory,org.keycloak.authentication.ConfigurableAuthenticatorFactory,org.keycloak.provider.ConfiguredProvider,org.keycloak.provider.ProviderFactory<org.keycloak.authentication.Authenticator>
public class UserSessionLimitsAuthenticatorFactory extends Object implements org.keycloak.authentication.AuthenticatorFactory
-
-
Field Summary
Fields Modifier and Type Field Description static StringBEHAVIORstatic StringDENY_NEW_SESSIONstatic StringERROR_MESSAGEstatic StringTERMINATE_OLDEST_SESSIONstatic StringUSER_CLIENT_LIMITstatic StringUSER_REALM_LIMITstatic StringUSER_SESSION_LIMITS
-
Constructor Summary
Constructors Constructor Description UserSessionLimitsAuthenticatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.keycloak.authentication.Authenticatorcreate(org.keycloak.models.KeycloakSession keycloakSession)List<org.keycloak.provider.ProviderConfigProperty>getConfigProperties()StringgetDisplayType()StringgetHelpText()StringgetId()StringgetReferenceCategory()org.keycloak.models.AuthenticationExecutionModel.Requirement[]getRequirementChoices()voidinit(org.keycloak.Config.Scope scope)booleanisConfigurable()booleanisUserSetupAllowed()voidpostInit(org.keycloak.models.KeycloakSessionFactory keycloakSessionFactory)
-
-
-
Field Detail
-
USER_REALM_LIMIT
public static final String USER_REALM_LIMIT
- See Also:
- Constant Field Values
-
USER_CLIENT_LIMIT
public static final String USER_CLIENT_LIMIT
- See Also:
- Constant Field Values
-
BEHAVIOR
public static final String BEHAVIOR
- See Also:
- Constant Field Values
-
DENY_NEW_SESSION
public static final String DENY_NEW_SESSION
- See Also:
- Constant Field Values
-
TERMINATE_OLDEST_SESSION
public static final String TERMINATE_OLDEST_SESSION
- See Also:
- Constant Field Values
-
USER_SESSION_LIMITS
public static final String USER_SESSION_LIMITS
- See Also:
- Constant Field Values
-
ERROR_MESSAGE
public static final String ERROR_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDisplayType
public String getDisplayType()
- Specified by:
getDisplayTypein interfaceorg.keycloak.authentication.ConfigurableAuthenticatorFactory
-
getReferenceCategory
public String getReferenceCategory()
- Specified by:
getReferenceCategoryin interfaceorg.keycloak.authentication.ConfigurableAuthenticatorFactory
-
isConfigurable
public boolean isConfigurable()
- Specified by:
isConfigurablein interfaceorg.keycloak.authentication.ConfigurableAuthenticatorFactory
-
getRequirementChoices
public org.keycloak.models.AuthenticationExecutionModel.Requirement[] getRequirementChoices()
- Specified by:
getRequirementChoicesin interfaceorg.keycloak.authentication.ConfigurableAuthenticatorFactory
-
isUserSetupAllowed
public boolean isUserSetupAllowed()
- Specified by:
isUserSetupAllowedin interfaceorg.keycloak.authentication.ConfigurableAuthenticatorFactory
-
getHelpText
public String getHelpText()
- Specified by:
getHelpTextin interfaceorg.keycloak.provider.ConfiguredProvider
-
getConfigProperties
public List<org.keycloak.provider.ProviderConfigProperty> getConfigProperties()
- Specified by:
getConfigPropertiesin interfaceorg.keycloak.provider.ConfiguredProvider
-
create
public org.keycloak.authentication.Authenticator create(org.keycloak.models.KeycloakSession keycloakSession)
- Specified by:
createin interfaceorg.keycloak.provider.ProviderFactory<org.keycloak.authentication.Authenticator>
-
init
public void init(org.keycloak.Config.Scope scope)
- Specified by:
initin interfaceorg.keycloak.provider.ProviderFactory<org.keycloak.authentication.Authenticator>
-
postInit
public void postInit(org.keycloak.models.KeycloakSessionFactory keycloakSessionFactory)
- Specified by:
postInitin interfaceorg.keycloak.provider.ProviderFactory<org.keycloak.authentication.Authenticator>
-
close
public void close()
- Specified by:
closein interfaceorg.keycloak.provider.ProviderFactory<org.keycloak.authentication.Authenticator>
-
getId
public String getId()
- Specified by:
getIdin interfaceorg.keycloak.provider.ProviderFactory<org.keycloak.authentication.Authenticator>
-
-