MCPcopy Create free account
hub / github.com/BaseXdb/basex / password

Method password

basex-core/src/main/java/org/basex/util/Util.java:100–106  ·  view source on GitHub ↗

Returns a password from standard input. @return password or empty string

()

Source from the content-addressed store, hash-verified

98 * @return password or empty string
99 */
100 public static String password() {
101 // use standard input if no console is defined (such as in Eclipse)
102 if(NOCONSOLE) return input();
103 // hide password
104 final char[] pw = System.console().readPassword();
105 return pw != null ? new String(pw) : "";
106 }
107
108 /**
109 * Prints a string to standard output, followed by a newline.

Callers 3

CLIClass · 0.95
initMethod · 0.95
passwordMethod · 0.95

Calls 2

inputMethod · 0.95
consoleMethod · 0.80

Tested by

no test coverage detected