Class PluginAuthenticatorRetVal
- java.lang.Object
-
- de.xima.fc.plugin.models.retval.auth.PluginAuthenticatorRetVal
-
- All Implemented Interfaces:
IPluginFormAuthenticatorRetVal
public class PluginAuthenticatorRetVal extends Object implements IPluginFormAuthenticatorRetVal
Default implementation for the return value of aIPluginAuthenticatorType. Contains the clients to be used for user authentication.- Author:
- XIMA MEDIA GmbH
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPluginAuthenticatorRetVal.Builder
-
Constructor Summary
Constructors Constructor Description PluginAuthenticatorRetVal(org.pac4j.core.client.IndirectClient client)Deprecated.Since 7.2.0.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.pac4j.core.client.IndirectClientgetClient()Deprecated.Since 7.2.0.org.pac4j.core.client.DirectClientgetDirectClient()The direct client to be used for authentication.org.pac4j.core.client.IndirectClientgetIndirectClient()The indirect client to be used for authentication.booleanisIndirectClientSupportsDirectAuthentication()Determines whether or not the indirect client (i.e.static PluginAuthenticatorRetVal.BuildernewBuilder()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.interfaces.plugin.retval.auth.IPluginFormAuthenticatorRetVal
getDirectClients
-
-
-
-
Constructor Detail
-
PluginAuthenticatorRetVal
@Deprecated public PluginAuthenticatorRetVal(org.pac4j.core.client.IndirectClient client)
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 Detail
-
newBuilder
public static PluginAuthenticatorRetVal.Builder 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.
-
isIndirectClientSupportsDirectAuthentication
public boolean isIndirectClientSupportsDirectAuthentication()
Description copied from interface:IPluginFormAuthenticatorRetValDetermines whether or not the indirect client (i.e.IPluginFormAuthenticatorRetVal.getIndirectClient()should be handled as a direct client. This means that the security logic of the client should be performed directly if the authenticator is the only authenticator configured for a protected resource (see #getDirectClient()). If a direct client is given then the direct client will be tried first.- Specified by:
isIndirectClientSupportsDirectAuthenticationin interfaceIPluginFormAuthenticatorRetVal- Returns:
trueif the indirect client should be treated as a direct client in the security logic of a protected resource andfalseotherwise.
-
getClient
@Deprecated public org.pac4j.core.client.IndirectClient 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.
-
-