|
|
@ -14,6 +14,7 @@ public class Vault implements VaultInterface { |
|
|
|
public boolean credentialM; |
|
|
|
public String userName; |
|
|
|
public String password; |
|
|
|
public boolean isInt = false; |
|
|
|
InputStream inputS = System.in; |
|
|
|
OutputStream outputS = System.out; |
|
|
|
|
|
|
@ -85,6 +86,15 @@ public class Vault implements VaultInterface { |
|
|
|
} |
|
|
|
|
|
|
|
public void showCredential(){ |
|
|
|
Scanner scan = new Scanner(inputS); |
|
|
|
println("Type in ID or username"); |
|
|
|
|
|
|
|
String str = scan.nextLine(); |
|
|
|
|
|
|
|
if(str.matches("[0-9]+")) { |
|
|
|
isInt = true; |
|
|
|
//getCredentialsViaId(Integer.parseInt(str)); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|