Class AbstractDuoOIDCClient

java.lang.Object
net.shibboleth.idp.plugin.authn.duo.AbstractDuoOIDCClient
All Implemented Interfaces:
DuoOIDCClient, DuoOIDCClientCapabilities
Direct Known Subclasses:
DuoSDKClientAdaptor, NimbusClient

public abstract class AbstractDuoOIDCClient extends Object implements DuoOIDCClient
Abstract base class for DuoOIDCClient implementations. Handles the clientId and retrieval of the client's capabilities.

Client's are shared amongst requests - and hence possibly threads - and therefore must be thread-safe

  • Field Details

    • clientId

      @Nonnull @NotEmpty private final String clientId
      The client instance UUID for identification.
  • Constructor Details

    • AbstractDuoOIDCClient

      protected AbstractDuoOIDCClient()
      Constructor.
  • Method Details

    • getClientId

      @Nonnull public final String getClientId()
      Description copied from interface: DuoOIDCClient
      Get an identifier for this client e.g. a UUID. Only for logging and debugging.
      Specified by:
      getClientId in interface DuoOIDCClient
      Returns:
      the client identifier.
    • getCapabilities

      @Nonnull public final DuoOIDCClientCapabilities getCapabilities()
      Description copied from interface: DuoOIDCClient
      Returns the capabilities of the underlying client.
      Specified by:
      getCapabilities in interface DuoOIDCClient
      Returns:
      interface to access the service's capabilities