package com.cf.imes.module.system.framework.jwt.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

import java.time.Duration;

/**
 * jwt属性
 *
 * @author Gqr
 * @since 2026/1/8 14:24
 */
@ConfigurationProperties(prefix = "jwt")
@Validated
@Data
public class JwtProperties {

    /**
     * imes密钥
     */
    private String secret;

    /**
     * mes密钥
     */
    private String mesSecret;

    /**
     * mes aud：jwt接受方
     */
    private String mesAud;

    /**
     * 令牌有效时长
     */
    private Duration mesTokenTtl;
}
