Package de.xima.fc.mdl.auth
Class DefaultAuthenticatorClients
- java.lang.Object
-
- de.xima.fc.mdl.auth.DefaultAuthenticatorClients
-
- All Implemented Interfaces:
IAuthenticatorClients
public class DefaultAuthenticatorClients extends Object implements IAuthenticatorClients
Default implementation for accessing the clients of an authenticator depending on the authentication flow.- Since:
- 7.2.0
- Author:
- XIMA Media GmbH
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultAuthenticatorClients.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<org.pac4j.core.client.Client>getAllClients()org.pac4j.core.client.ClientgetClient(EAuthenticationFlow authFlow)The client for a given authentication flow.Collection<org.pac4j.core.client.Client>getClients(EAuthenticationFlow authFlow)static DefaultAuthenticatorClients.BuildernewBuilder()
-
-
-
Method Detail
-
newBuilder
public static DefaultAuthenticatorClients.Builder newBuilder()
-
getClients
public Collection<org.pac4j.core.client.Client> getClients(EAuthenticationFlow authFlow)
- Specified by:
getClientsin interfaceIAuthenticatorClients
-
getClient
public org.pac4j.core.client.Client getClient(EAuthenticationFlow authFlow)
Description copied from interface:IAuthenticatorClientsThe client for a given authentication flow.- Specified by:
getClientin interfaceIAuthenticatorClients- Parameters:
authFlow- authentication flow for which a client is requested.- Returns:
- The
Clientfor the given authentication flow if it exists andnullotherwise.
-
getAllClients
public Collection<org.pac4j.core.client.Client> getAllClients()
- Specified by:
getAllClientsin interfaceIAuthenticatorClients- Returns:
- A collection of all clients regardless of authentication flow.
-
-