Class UsernameContext

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

public final class UsernameContext
extends BaseContext
Context that carries a username (without a password) to be validated.
Parent:
AuthenticationContext
Added:
After extracting a username during authentication
  • Field Details

    • username

      private String username
      The username.
  • Constructor Details

    • UsernameContext

      public UsernameContext()
  • Method Details

    • getUsername

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

      @Nonnull public UsernameContext setUsername​(@Nullable String name)
      Sets the username.
      Parameters:
      name - the username
      Returns:
      this context