io.vertx.ext.auth

## Interface ChainAuth

- All Superinterfaces:
    AuthenticationProvider

      public interface ChainAuth
      extends AuthenticationProvider

  Chain several authentication providers as if they were one. This is useful for cases where one want to authenticate across several providers, for example, database and fallback to passwd file.

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `ChainAuth` | `add(AuthenticationProvider other)` Appends a auth provider to the chain.
    `static ChainAuth` | `all()` Create a Chainable Auth Provider auth provider that will resolve if all auth providers are successful.
    `static ChainAuth` | `any()` Create a Chainable Auth Provider auth provider that will resolve on the first success.
    `static ChainAuth` | `create()` Deprecated.

    - ### Methods inherited from interface io.vertx.ext.auth.authentication.AuthenticationProvider

      `authenticate, authenticate, authenticate, authenticate`

- - ### Method Detail

    - #### create

          @Deprecated
          static ChainAuth create()

      Deprecated.
      Create a Chainable Auth Provider auth provider
      Returns:
        the auth provider

    - #### all

          static ChainAuth all()

      Create a Chainable Auth Provider auth provider that will resolve if all auth providers are successful.
      Returns:
        the auth provider

    - #### any

          static ChainAuth any()

      Create a Chainable Auth Provider auth provider that will resolve on the first success.
      Returns:
        the auth provider

    - #### add

          ChainAuth add(AuthenticationProvider other)

      Appends a auth provider to the chain.
      Parameters:
        `other` - auth provider
      Returns:
        self

Copyright © 2024 Eclipse. All rights reserved.