Home / Class/ JksSslStoreDetails Class — spring-boot Architecture

JksSslStoreDetails Class — spring-boot Architecture

Architecture documentation for the JksSslStoreDetails class in JksSslStoreDetails.java from the spring-boot codebase.

Entity Profile

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/ssl/jks/JksSslStoreDetails.java lines 38–68

public record JksSslStoreDetails(@Nullable String type, @Nullable String provider, @Nullable String location,
		@Nullable String password) {

	/**
	 * Return a new {@link JksSslStoreDetails} instance with a new password.
	 * @param password the new password
	 * @return a new {@link JksSslStoreDetails} instance
	 */
	public JksSslStoreDetails withPassword(String password) {
		return new JksSslStoreDetails(this.type, this.provider, this.location, password);
	}

	boolean isEmpty() {
		return isEmpty(this.type) && isEmpty(this.provider) && isEmpty(this.location);
	}

	private boolean isEmpty(@Nullable String value) {
		return !StringUtils.hasText(value);
	}

	/**
	 * Factory method to create a new {@link JksSslStoreDetails} instance for the given
	 * location.
	 * @param location the location
	 * @return a new {@link JksSslStoreDetails} instance.
	 */
	public static JksSslStoreDetails forLocation(@Nullable String location) {
		return new JksSslStoreDetails(null, null, location, null);
	}

}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free