Package de.xima.fc.security.pac4j.client
Class BackendClientFactory
- java.lang.Object
 - 
- de.xima.fc.security.pac4j.client.BackendClientFactory
 
 
- 
public class BackendClientFactory extends Object
Factory for creating Pac4jClients. This factory sets up the clients for the backend login. SeeClientFactoryif you want to create clients for general login contexts.- Since:
 - 8.0.0
 - Author:
 - XIMA Media GmbH
 
 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IAuthenticatorClientsclients(IClientDescriptor descriptor)Creates all direct and indirect backend clients from the given client descriptor.static List<org.pac4j.core.client.Client>direct(IClientDescriptor descriptor)Creates all direct backend clients from the given client descriptor.static org.pac4j.core.client.Clientindirect(IClientDescriptor descriptor)Creates the indirect backend client from the given client descriptor. 
 - 
 
- 
- 
Method Detail
- 
clients
public static IAuthenticatorClients clients(IClientDescriptor descriptor)
Creates all direct and indirect backend clients from the given client descriptor.- Parameters:
 descriptor- Client descriptor for which to create the clients.- Returns:
 - The backend clients, or 
nullwhen thebackend targetis not supported by given client. 
 
- 
direct
public static List<org.pac4j.core.client.Client> direct(IClientDescriptor descriptor)
Creates all direct backend clients from the given client descriptor.- Parameters:
 descriptor- Client descriptor for which to create the clients.- Returns:
 - The backend clients, or an empty list when the
 
backend targetis not supported by given client. 
 
- 
indirect
public static org.pac4j.core.client.Client indirect(IClientDescriptor descriptor)
Creates the indirect backend client from the given client descriptor.- Parameters:
 descriptor- Client descriptor for which to create the client.- Returns:
 - The backend client, or 
nullwhen thebackend targetis not supported by given client. 
 
 - 
 
 -