You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.nio.charset.StandardCharsets; import java.util.Scanner;
public class Vault implements VaultInterface {
public boolean config; public int PWLength; InputStream inputS = System.in; OutputStream outputS = System.out;
private void println(String output) { try { outputS.write((output + "\n").getBytes(StandardCharsets.UTF_8)); } catch (IOException e) { e.printStackTrace(); } }
public void configure(){ StringBuilder sbcm = new StringBuilder(); Scanner scan = new Scanner(inputS); config = true;
sbcm.append("Configure:\n"); sbcm.append("- Password length: l\n"); sbcm.append("- Have Capitals: h\n"); sbcm.append("- exit: e\n");
println(sbcm.toString());
String input = scan.nextLine();
if (input.equals("e")) { config = false; }
}
public void setPWLength(){ println("Set PW length:");
Scanner scan = new Scanner(inputS); String input = scan.nextLine();
PWLength = Integer.parseInt(input);
println("\nNew PWlength is now: "); }
public void addCredential(){
}
public void showCredential(){
}
public void getAsJson(){
}
public void loadFromJson(){
}
}
|