Class DuoPasswordlessContext

java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.plugin.authn.duo.context.DuoPasswordlessContext
All Implemented Interfaces:
Iterable<BaseContext>

public final class DuoPasswordlessContext extends BaseContext
Context that tracks username and signals usage of Duo in a passwordless mode.

This is used for a more specialized use of the Duo service as a single factor. The presence of the context acts as a signal of this behavior, and the username is tracked here since it is typically set by calling code.

Since:
2.1.0
Parent:
AuthenticationContext
Added:
By flow action
  • Field Details

    • username

      @Nullable private String username
      Username.
    • bypassView

      private boolean bypassView
      Whether to bypass the passwordless view directly into Duo.
  • Constructor Details

    • DuoPasswordlessContext

      public DuoPasswordlessContext()
  • Method Details

    • getUsername

      @Nullable public String getUsername()
      Get the username.
      Returns:
      username
    • setUsername

      @Nonnull public DuoPasswordlessContext setUsername(@Nullable String name)
      Set the username.
      Parameters:
      name - username
      Returns:
      this context
    • isBypassView

      public boolean isBypassView()
      Get whether to bypass the view in favor of directly invoking the service.
      Returns:
      true iff the view should be bypassed
    • setBypassView

      @Nonnull public DuoPasswordlessContext setBypassView(boolean flag)
      Set whether to bypass the view in favor of directly invoking the service.
      Parameters:
      flag - flag to set
      Returns:
      this context