Package org.pac4j.core.client
Class Clients
java.lang.Object
org.pac4j.core.util.InitializableObject
org.pac4j.core.client.Clients
This class is made to group multiple clients, generally on one callback url.
Clients can be changed at any time.
- Since:
- 1.3.0
- Author:
- Jerome Leleu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAuthorizationGenerator
(AuthorizationGenerator authorizationGenerator) void
Find all the clients (initialized).findClient
(Class<C> clazz) Deprecated.findClient
(String name) Return the right client according to the specific name.protected void
internalInit
(boolean forceReinit) Populate the resolvers, callback URL and authz generators in the Client if defined in Clients and not already in the Client itself.void
setAjaxRequestResolver
(AjaxRequestResolver ajaxRequestResolver) void
setAuthorizationGenerator
(AuthorizationGenerator authorizationGenerator) void
setAuthorizationGenerators
(List<AuthorizationGenerator> authorizationGenerators) void
setAuthorizationGenerators
(AuthorizationGenerator... authorizationGenerators) void
setCallbackUrl
(String callbackUrl) void
setCallbackUrlResolver
(CallbackUrlResolver callbackUrlResolver) void
setClients
(List<Client> clients) void
setClients
(Client... clients) void
setDefaultSecurityClients
(String defaultSecurityClients) void
setUrlResolver
(UrlResolver urlResolver) protected boolean
shouldInitialize
(boolean forceReinit) toString()
Methods inherited from class org.pac4j.core.util.InitializableObject
afterInternalInit, beforeInternalInit, getLastAttempt, getMaxAttempts, getMinTimeIntervalBetweenAttemptsInMilliseconds, getNbAttempts, init, init, isInitialized, reinit, setMaxAttempts, setMinTimeIntervalBetweenAttemptsInMilliseconds
-
Constructor Details
-
Clients
public Clients() -
Clients
-
Clients
-
Clients
-
Clients
-
-
Method Details
-
shouldInitialize
protected boolean shouldInitialize(boolean forceReinit) - Overrides:
shouldInitialize
in classInitializableObject
-
internalInit
protected void internalInit(boolean forceReinit) Populate the resolvers, callback URL and authz generators in the Client if defined in Clients and not already in the Client itself. And check the client name.- Specified by:
internalInit
in classInitializableObject
-
findClient
Return the right client according to the specific name.- Parameters:
name
- name of the client- Returns:
- the right client
-
findClient
Deprecated.UsefindClient(String)
instead. -
findAllClients
Find all the clients (initialized).- Returns:
- all the clients (initialized)
-
getCallbackUrl
-
setCallbackUrl
-
addClient
-
setClients
-
setClients
-
getClients
-
getAjaxRequestResolver
-
setAjaxRequestResolver
-
getCallbackUrlResolver
-
setCallbackUrlResolver
-
getAuthorizationGenerators
-
setAuthorizationGenerators
-
setAuthorizationGenerators
-
setAuthorizationGenerator
-
addAuthorizationGenerator
-
getDefaultSecurityClients
-
setDefaultSecurityClients
-
getUrlResolver
-
setUrlResolver
-
toString
-