package com.codebyte.api.config.ssl;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.bind.DefaultValue;

/**
 * TLS material locations — three independent PEM files (§6.1). Mapped from the {@code SSL_*}
 * environment variables in application.yml. The files are the source of truth and are never copied,
 * converted, or persisted anywhere.
 */
@ConfigurationProperties(prefix = "app.ssl")
public record SslProperties(
        @DefaultValue("false") boolean enabled,
        String certificate,
        String ca,
        String privateKey,
        String privateKeyPassword) {}
