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 String
BEHAVIOR
static String
DENY_NEW_SESSION
static String
ERROR_MESSAGE
static String
TERMINATE_OLDEST_SESSION
static String
USER_CLIENT_LIMIT
static String
USER_REALM_LIMIT
static String
USER_SESSION_LIMITS
-
Constructor Summary
Constructors Constructor Description UserSessionLimitsAuthenticatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.keycloak.authentication.Authenticator
create(org.keycloak.models.KeycloakSession keycloakSession)
List<org.keycloak.provider.ProviderConfigProperty>
getConfigProperties()
String
getDisplayType()
String
getHelpText()
String
getId()
String
getReferenceCategory()
org.keycloak.models.AuthenticationExecutionModel.Requirement[]
getRequirementChoices()
void
init(org.keycloak.Config.Scope scope)
boolean
isConfigurable()
boolean
isUserSetupAllowed()
void
postInit(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:
getDisplayType
in interfaceorg.keycloak.authentication.ConfigurableAuthenticatorFactory
-
getReferenceCategory
public String getReferenceCategory()
- Specified by:
getReferenceCategory
in interfaceorg.keycloak.authentication.ConfigurableAuthenticatorFactory
-
isConfigurable
public boolean isConfigurable()
- Specified by:
isConfigurable
in interfaceorg.keycloak.authentication.ConfigurableAuthenticatorFactory
-
getRequirementChoices
public org.keycloak.models.AuthenticationExecutionModel.Requirement[] getRequirementChoices()
- Specified by:
getRequirementChoices
in interfaceorg.keycloak.authentication.ConfigurableAuthenticatorFactory
-
isUserSetupAllowed
public boolean isUserSetupAllowed()
- Specified by:
isUserSetupAllowed
in interfaceorg.keycloak.authentication.ConfigurableAuthenticatorFactory
-
getHelpText
public String getHelpText()
- Specified by:
getHelpText
in interfaceorg.keycloak.provider.ConfiguredProvider
-
getConfigProperties
public List<org.keycloak.provider.ProviderConfigProperty> getConfigProperties()
- Specified by:
getConfigProperties
in interfaceorg.keycloak.provider.ConfiguredProvider
-
create
public org.keycloak.authentication.Authenticator create(org.keycloak.models.KeycloakSession keycloakSession)
- Specified by:
create
in interfaceorg.keycloak.provider.ProviderFactory<org.keycloak.authentication.Authenticator>
-
init
public void init(org.keycloak.Config.Scope scope)
- Specified by:
init
in interfaceorg.keycloak.provider.ProviderFactory<org.keycloak.authentication.Authenticator>
-
postInit
public void postInit(org.keycloak.models.KeycloakSessionFactory keycloakSessionFactory)
- Specified by:
postInit
in interfaceorg.keycloak.provider.ProviderFactory<org.keycloak.authentication.Authenticator>
-
close
public void close()
- Specified by:
close
in interfaceorg.keycloak.provider.ProviderFactory<org.keycloak.authentication.Authenticator>
-
getId
public String getId()
- Specified by:
getId
in interfaceorg.keycloak.provider.ProviderFactory<org.keycloak.authentication.Authenticator>
-
-