Package fitnesse.fixtures

Source Code of fitnesse.fixtures.AuthenticatorSetup

// Copyright (C) 2003-2009 by Object Mentor, Inc. All rights reserved.
// Released under the terms of the CPL Common Public License version 1.0.
package fitnesse.fixtures;

import static fitnesse.fixtures.FitnesseFixtureContext.authenticator;
import fitnesse.authentication.OneUserAuthenticator;

public class AuthenticatorSetup
{
  private String username;
  private String password;

  public String status() {
    authenticator = new OneUserAuthenticator(username, password);
    return "ok";
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public void setPassword(String password) {
    this.password = password;
  }
}
TOP

Related Classes of fitnesse.fixtures.AuthenticatorSetup

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.