Class CreateAccount
java.lang.Object
io.micronaut.starter.cli.command.BaseCommand
io.micronaut.starter.cli.command.CodeGenCommand
io.micronaut.starter.cli.feature.acme.CreateKeyPair
io.micronaut.starter.cli.feature.acme.CreateAccount
- All Implemented Interfaces:
ConsoleOutput,Callable<Integer>
Allows for creating a new account on the given acme server. Keypair can either be passed in or given as parameters.
-
Field Summary
FieldsFields inherited from class io.micronaut.starter.cli.feature.acme.CreateKeyPair
keyDir, keyName, keySizeFields inherited from class io.micronaut.starter.cli.command.CodeGenCommand
beanContext, config, consoleOutput, outputHandlerSupplier, overwriteFields inherited from class io.micronaut.starter.cli.command.BaseCommand
commonOptions, specFields inherited from interface io.micronaut.starter.io.ConsoleOutput
NOOP -
Constructor Summary
ConstructorsConstructorDescriptionCreateAccount(CodeGenConfig config) CreateAccount(CodeGenConfig config, io.micronaut.core.util.functional.ThrowingSupplier<OutputHandler, IOException> outputHandlerSupplier, ConsoleOutput consoleOutput) -
Method Summary
Methods inherited from class io.micronaut.starter.cli.feature.acme.CreateKeyPair
doKeyCreationMethods inherited from class io.micronaut.starter.cli.command.CodeGenCommand
err, getCommand, getProject, getTemplateRenderer, getTemplateRenderer, out, setBeanContext, warningMethods inherited from class io.micronaut.starter.cli.command.BaseCommand
errWriter, getOperatingSystem, getSpec, green, outWriter, red, showStacktrace, verbose
-
Field Details
-
email
-
acmeServerOption
-
-
Constructor Details
-
CreateAccount
-
CreateAccount
public CreateAccount(CodeGenConfig config, io.micronaut.core.util.functional.ThrowingSupplier<OutputHandler, IOException> outputHandlerSupplier, ConsoleOutput consoleOutput)
-
-
Method Details
-
applies
public boolean applies()- Overrides:
appliesin classCreateKeyPair
-
call
Uses arguments passed to do all key creation and account creation.- Specified by:
callin interfaceCallable<Integer>- Overrides:
callin classCreateKeyPair- Returns:
- exit code of the program
-