|
|
|
|
|
|
|
|
|
|
|
import java.io.BufferedReader; |
|
|
|
|
|
import java.io.FileReader; |
|
|
|
|
|
import java.io.IOException; |
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class Credentials { |
|
|
public class Credentials { |
|
|
|
|
|
|
|
|
String login; |
|
|
String login; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean valid(){ |
|
|
public boolean valid(){ |
|
|
|
|
|
|
|
|
|
|
|
/* String line; |
|
|
|
|
|
ArrayList<String> result = new ArrayList<String>(); |
|
|
|
|
|
try { |
|
|
|
|
|
FileReader fr = new FileReader(passwd.txt); |
|
|
|
|
|
BufferedReader br = new BufferedReader(fr); |
|
|
|
|
|
while ((line = br.readLine()) != null) |
|
|
|
|
|
result.add(line); |
|
|
|
|
|
br.close(); |
|
|
|
|
|
} |
|
|
|
|
|
catch (IOException e) { |
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
} |
|
|
|
|
|
return result.toArray(new String[]{}); |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
public static void main{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|