Interface DuoOIDCClientFactory

All Known Implementing Classes:
DuoSDKClientFactory, NimbusClientFactory

public interface DuoOIDCClientFactory
Abstract factory for creating singleton DuoOIDCClient instances.
  • Method Details

    • createInstance

      @Nonnull DuoOIDCClient createInstance(@Nonnull DuoOIDCIntegration integration) throws DuoClientException
      Create an DuoOIDCClient instance from the supplied integration.

      The client should be fully initialised and safely published.

      Parameters:
      integration - the duo integration used to instantiate the client.
      Returns:
      the created Duo client, never null.
      Throws:
      DuoClientException - if there is an error creating the Duo client.