InventoryTokenProperties.java

package com.ecommerce.inventory.infrastructure.security;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

@Validated
@ConfigurationProperties("ecommerce.security.token")
public record InventoryTokenProperties(
        @NotBlank @Size(min = 32) String secret,
        @NotBlank String issuer
) {
}