4 import dolda.dolcon.protocol.Response;
5 import dolda.dolcon.protocol.Command;
7 public class PasswordAuth implements Authenticator {
8 private String password;
10 public PasswordAuth(String password) {
11 this.password = password;
14 public String handles(List<String> name) {
15 System.out.println(name);
16 if(name.contains("pam"))
21 public Command step(Response resp) throws ProtocolException {
22 if((password != null) && (resp.code == 301)) {
24 return(new Command("pass", password));
29 throw(new ResponseException(resp, 0));