package org.xyzh.common.auth.contants;

/**
 * @description    认证相关常量类
 * @filename    AuthContants.java
 * @author    yslg
 * @copyright yslg
 * @since 2025-11-09
 */
public class AuthContants {
    
    /**
     * 用户ID请求属性键
     */
    public static final String USER_ID_ATTRIBUTE = "userId";
    
    /**
     * 用户名请求属性键
     */
    public static final String USERNAME_ATTRIBUTE = "username";
    
    /**
     * Token请求属性键
     */
    public static final String TOKEN_ATTRIBUTE = "token";
    
    /**
     * JWT Claims 中的用户名键
     */
    public static final String CLAIMS_USERNAME_KEY = "username";
    
    /**
     * JWT Claims 中的用户ID键
     */
    public static final String CLAIMS_USER_ID_KEY = "userId";
    
    /**
     * 私有构造函数，防止实例化
     */
    private AuthContants() {
        throw new UnsupportedOperationException("常量类不允许实例化");
    }
}
