Interface IPluginFormAuthenticatorRetVal

  • All Known Implementing Classes:
    PluginAuthenticatorRetVal

    public interface IPluginFormAuthenticatorRetVal
    Interface for the return value of an authenticator type plugin.
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • getDirectClient

        @Nullable
        default org.pac4j.core.client.DirectClient getDirectClient()
        The 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). If there is only one authenticator configured for a protected resource (e.g. a form) and this authenticator can produce a direct authenticator then the security logic with this client will be performed directly.
        Returns:
        The DirectClient created by the plugin.
        Since:
        7.2.0
      • getIndirectClient

        @Nullable
        default org.pac4j.core.client.IndirectClient getIndirectClient()
        The 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.
        Returns:
        The IndirectClient created by the plugin.
        Since:
        7.2.0
      • isIndirectClientSupportsDirectAuthentication

        default boolean isIndirectClientSupportsDirectAuthentication()
        Determines whether or not the indirect client (i.e. 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.
        Returns:
        true if the indirect client should be treated as a direct client in the security logic of a protected resource and false otherwise.
        Since:
        7.2.0
      • getClient

        @Deprecated
        default org.pac4j.core.client.IndirectClient getClient()
        Deprecated.
        Since 7.2.0. Use getIndirectClient() instead for producing an indirect client.
        The client to be used for authenticating the user.
        Returns:
        The IndirectClient created by the plugin.