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

public class TOTPContext extends BaseContext
Context class for state of a TOTP validation.
  • Field Details

    • username

      @Nullable @NotEmpty private String username
      The subject identifier with respect to the token "back-end".
    • tokenCode

      @Nullable private Integer tokenCode
      The token code supplied.
    • tokenSeeds

      @Nonnull private Collection<byte[]> tokenSeeds
      The raw token seeds associated with the subject.
  • Constructor Details

    • TOTPContext

      public TOTPContext()
      Constructor.
  • Method Details

    • getUsername

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

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

      @Nullable public Integer getTokenCode()
      Get the token code.
      Returns:
      the token code
    • setTokenCode

      @Nonnull public TOTPContext setTokenCode(@Nullable Integer code)
      Set the token code.
      Parameters:
      code - the token code
      Returns:
      this context
    • getTokenSeeds

      @Nonnull @Live public Collection<byte[]> getTokenSeeds()
      Get the raw token seeds for the subject.
      Returns:
      the token seeds