Package de.xima.fc.mdl.auth
Class DefaultAuthenticatorClients
java.lang.Object
de.xima.fc.mdl.auth.DefaultAuthenticatorClients
- All Implemented Interfaces:
 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 - 
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether or not the providedindirect clientshould be executed automatically iff there is only one authenticator configured for access to a protected resource (e.g.Collection<org.pac4j.core.client.Client>Returns the descriptor for these client.Collection<org.pac4j.core.client.Client>getClients(EAuthenticationFlow authFlow) Gets all clients for the given authentication flow.Collection<org.pac4j.core.client.Client>Returns the direct clients of this authenticator configuration.org.pac4j.core.client.ClientReturns the indirect client of this authenticator configuration.newBuilder(IClientDescriptor clientDescriptor)  
- 
Method Details
- 
newBuilder
- Returns:
 - a new builder for 
DefaultAuthenticatorClients. 
 - 
getClientDescriptor
Description copied from interface:IAuthenticatorClientsReturns the descriptor for these client.- Specified by:
 getClientDescriptorin interfaceIAuthenticatorClients- Returns:
 - the descriptor for these clients.
 
 - 
getDirectClients
Description copied from interface:IAuthenticatorClientsReturns the direct clients of this authenticator configuration.- Specified by:
 getDirectClientsin interfaceIAuthenticatorClients- Returns:
 - a collection of all direct clients of this authenticator configuration.
 
 - 
getIndirectClient
public org.pac4j.core.client.Client getIndirectClient()Description copied from interface:IAuthenticatorClientsReturns the indirect client of this authenticator configuration.- Specified by:
 getIndirectClientin interfaceIAuthenticatorClients- Returns:
 - the indirect client of this authenticator configuration if it exists and 
nullotherwise. 
 - 
getAllClients
- Specified by:
 getAllClientsin interfaceIAuthenticatorClients- Returns:
 - A collection of all clients regardless of authentication flow.
 
 - 
getClients
Description copied from interface:IAuthenticatorClientsGets all clients for the given authentication flow.- Specified by:
 getClientsin interfaceIAuthenticatorClients- Parameters:
 authFlow- authentication flow for which a clients are requested.- Returns:
 - A collection of clients for the given authentication flow.
 
 - 
autoExecuteIndirectClient
public boolean autoExecuteIndirectClient()Description copied from interface:IAuthenticatorClientsDetermines whether or not the providedindirect clientshould be executed automatically iff there is only one authenticator configured for access to a protected resource (e.g. form, backend). Automatic execution of the client will result in immediate redirection to the IDP defined by the client when accessing the protected resource.- Specified by:
 autoExecuteIndirectClientin interfaceIAuthenticatorClients- Returns:
 trueif the provided indirect client should be automatically executed andfalseotherwise.
 
 -