Package convex.cli.mixins
Class KeyMixin
java.lang.Object
convex.cli.ACommand
convex.cli.mixins.AMixin
convex.cli.mixins.KeyMixin
- All Implemented Interfaces:
Runnable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchar[]
Gets the password for the current key.Gets the key specified on the CLI with --keyMethods inherited from class convex.cli.ACommand
commandLine, inform, inform, informError, informSuccess, informWarning, isColoured, isInteractive, isParanoid, paranoia, println, println, printRecord, printResult, prompt, readPassword, run, showUsage, showUsage, verbose
-
Field Details
-
publicKey
-
keyPassword
protected char[] keyPassword
-
-
Constructor Details
-
KeyMixin
public KeyMixin()
-
-
Method Details
-
getPublicKey
Gets the key specified on the CLI with --key- Returns:
- Public key specified at CLI (may be prefix)
-
getKeyPassword
public char[] getKeyPassword()Gets the password for the current key. Prompts for missing password in interactive mode.- Returns:
- password
-