|
|
@ -10,6 +10,7 @@ public class Vault implements VaultInterface { |
|
|
|
public int PWLength; |
|
|
|
public boolean haveCapitals; |
|
|
|
public boolean hasSpecialChars; |
|
|
|
public boolean hasNumbers; |
|
|
|
InputStream inputS = System.in; |
|
|
|
OutputStream outputS = System.out; |
|
|
|
|
|
|
@ -105,4 +106,19 @@ public class Vault implements VaultInterface { |
|
|
|
println("Your PWs don´t have special characters anymore."); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public void SetNumbers() { |
|
|
|
println("Should you PW have numbers? Type in yes or no."); |
|
|
|
|
|
|
|
Scanner scan = new Scanner(inputS); |
|
|
|
String input = scan.nextLine(); |
|
|
|
|
|
|
|
if(input.equals("yes")){ |
|
|
|
hasNumbers = true; |
|
|
|
println("Your PWs contains now numbers."); |
|
|
|
}else if(input.equals("no")){ |
|
|
|
hasNumbers = false; |
|
|
|
println("Your PWs don´t have numbers anymore."); |
|
|
|
} |
|
|
|
} |
|
|
|
} |