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 class
DefaultAuthenticatorClients.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.Client
getClient(EAuthenticationFlow authFlow)
The client for a given authentication flow.Collection<org.pac4j.core.client.Client>
getClients(EAuthenticationFlow authFlow)
static DefaultAuthenticatorClients.Builder
newBuilder()
-
-
-
Method Detail
-
newBuilder
public static DefaultAuthenticatorClients.Builder newBuilder()
-
getClients
public Collection<org.pac4j.core.client.Client> getClients(EAuthenticationFlow authFlow)
- Specified by:
getClients
in interfaceIAuthenticatorClients
-
getClient
public org.pac4j.core.client.Client getClient(EAuthenticationFlow authFlow)
Description copied from interface:IAuthenticatorClients
The client for a given authentication flow.- Specified by:
getClient
in interfaceIAuthenticatorClients
- Parameters:
authFlow
- authentication flow for which a client is requested.- Returns:
- The
Client
for the given authentication flow if it exists andnull
otherwise.
-
getAllClients
public Collection<org.pac4j.core.client.Client> getAllClients()
- Specified by:
getAllClients
in interfaceIAuthenticatorClients
- Returns:
- A collection of all clients regardless of authentication flow.
-
-