Package de.xima.fc.security.pac4j.client
Class FormClientFactory
java.lang.Object
de.xima.fc.security.pac4j.client.FormClientFactory
Factory for creating Pac4j
Clients. This factory sets up the clients for form login. See
ClientFactory if you want to create clients for general login contexts.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic IAuthenticatorClientsclients(IClientDescriptor descriptor) Creates all direct and indirect form clients from the given client descriptor.static List<org.pac4j.core.client.Client>direct(IClientDescriptor descriptor) Creates all direct form clients from the given client descriptor.static org.pac4j.core.client.Clientindirect(IClientDescriptor descriptor) Creates the indirect form client from the given client descriptor.
-
Method Details
-
clients
Creates all direct and indirect form clients from the given client descriptor.- Parameters:
descriptor- Client descriptor for which to create the clients.- Returns:
- The form clients, or
nullwhen theform targetis not supported by given client.
-
direct
Creates all direct form clients from the given client descriptor.- Parameters:
descriptor- Client descriptor for which to create the clients.- Returns:
- The form clients, or an empty list when the
form targetis not supported by given client.
-
indirect
Creates the indirect form client from the given client descriptor.- Parameters:
descriptor- Client descriptor for which to create the client.- Returns:
- The form clients, or
nullwhen theform targetis not supported by given client.
-