Class PluginAuthenticatorRetVal
java.lang.Object
de.xima.fc.plugin.models.retval.auth.PluginAuthenticatorRetVal
- All Implemented Interfaces:
IPluginFormAuthenticatorRetVal
Default implementation for the return value of a
IPluginAuthenticatorType.buildFormAuthClient(IPluginFormAuthenticatorParams). Contains the clients to be used
for user authentication.- Author:
- XIMA MEDIA GmbH
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPluginAuthenticatorRetVal(org.pac4j.core.client.IndirectClient client) Deprecated.Since 7.2.0. -
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.org.pac4j.core.client.IndirectClientDeprecated.Since 7.2.0.org.pac4j.core.client.DirectClientThe direct client to be used for authentication.org.pac4j.core.client.IndirectClientThe indirect client to be used for authentication.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.xima.fc.interfaces.plugin.retval.auth.IPluginFormAuthenticatorRetVal
getDirectClients, isIndirectClientSupportsDirectAuthentication
-
Constructor Details
-
PluginAuthenticatorRetVal
Deprecated.Since 7.2.0. UsenewBuilder()instead.Creates a new return value with the given client.- Parameters:
client- The client that implements the user authentication.
-
-
Method Details
-
newBuilder
-
getDirectClient
public org.pac4j.core.client.DirectClient getDirectClient()Description copied from interface:IPluginFormAuthenticatorRetValThe direct client to be used for authentication. Direct clients generally bring authentication information with the request to a protected resource (i.e. as Request-Headers).- Specified by:
getDirectClientin interfaceIPluginFormAuthenticatorRetVal- Returns:
- The
DirectClientcreated by the plugin.
-
getIndirectClient
public org.pac4j.core.client.IndirectClient getIndirectClient()Description copied from interface:IPluginFormAuthenticatorRetValThe indirect client to be used for authentication. Indirect clients work with an authorization flow that redirects the user to the IDP where they authenticate. The result of the authentication is then returned to the callback URL.- Specified by:
getIndirectClientin interfaceIPluginFormAuthenticatorRetVal- Returns:
- The
IndirectClientcreated by the plugin.
-
autoExecuteIndirectClient
public boolean autoExecuteIndirectClient()Description copied from interface:IPluginFormAuthenticatorRetValDetermines 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 interfaceIPluginFormAuthenticatorRetVal- Returns:
trueif the provided indirect client should be automatically executed andfalseotherwise.
-
getClient
Deprecated.Since 7.2.0. UsegetIndirectClient()instead for producing an indirect client.Description copied from interface:IPluginFormAuthenticatorRetValThe client to be used for authenticating the user.- Specified by:
getClientin interfaceIPluginFormAuthenticatorRetVal- Returns:
- The
IndirectClientcreated by the plugin.
-