Home / Function/ run() — spring-boot Function Reference

run() — spring-boot Function Reference

Architecture documentation for the run() function in EncodePasswordCommand.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  99cb7f98_9080_5773_6bf6_b5a59d233c58["run()"]
  8f3704bf_0516_ae8f_5ba1_34c8d06115d2["error()"]
  99cb7f98_9080_5773_6bf6_b5a59d233c58 -->|calls| 8f3704bf_0516_ae8f_5ba1_34c8d06115d2
  fc88690e_99c9_f856_76c6_c71d50291cb8["info()"]
  99cb7f98_9080_5773_6bf6_b5a59d233c58 -->|calls| fc88690e_99c9_f856_76c6_c71d50291cb8
  6d62efc4_2b30_b980_aadc_f8e754508046["run()"]
  99cb7f98_9080_5773_6bf6_b5a59d233c58 -->|calls| 6d62efc4_2b30_b980_aadc_f8e754508046
  style 99cb7f98_9080_5773_6bf6_b5a59d233c58 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/encodepassword/EncodePasswordCommand.java lines 95–111

		@Override
		protected ExitStatus run(OptionSet options) {
			if (options.nonOptionArguments().size() != 1) {
				Log.error("A single password option must be provided");
				return ExitStatus.ERROR;
			}
			String algorithm = options.valueOf(this.algorithm);
			String password = (String) options.nonOptionArguments().get(0);
			Supplier<PasswordEncoder> encoder = ENCODERS.get(algorithm);
			if (encoder == null) {
				Log.error("Unknown algorithm, valid options are: "
						+ StringUtils.collectionToCommaDelimitedString(ENCODERS.keySet()));
				return ExitStatus.ERROR;
			}
			Log.info(encoder.get().encode(password));
			return ExitStatus.OK;
		}

Domain

Subdomains

Frequently Asked Questions

What does run() do?
run() is a function in the spring-boot codebase.
What does run() call?
run() calls 3 function(s): error, info, run.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free