
com.iohao.game.bolt.broker.client.external.config.ExternalGlobalConfig Maven / Gradle / Ivy
/*
* ioGame
* Copyright (C) 2021 - 2023 渔民小镇 ([email protected]、[email protected]) . All Rights Reserved.
* # iohao.com . 渔民小镇
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.iohao.game.bolt.broker.client.external.config;
import lombok.experimental.UtilityClass;
import com.iohao.game.bolt.broker.client.external.bootstrap.message.ExternalMessage;
/**
* @author 渔民小镇
* @date 2022-03-22
*/
@UtilityClass
public class ExternalGlobalConfig {
/**
* true 表示请求业务方法需要先登录
*
* 将在下个大版本中移除
*
* 请使用 {@link ExternalGlobalConfig#accessAuthenticationHook} 代替
*
*/
@Deprecated
public boolean verifyIdentity = true;
/**
* 访问验证钩子接口
*
* 使用文档
* https://www.yuque.com/iohao/game/tywkqv#qEvtB
*
*/
public AccessAuthenticationHook accessAuthenticationHook = new DefaultAccessAuthenticationHook();
/**
* 协议开关,用于一些协议级别的开关控制,比如 安全加密校验等。 : 0 不校验
*
* see {@link ExternalMessage#getProtocolSwitch()}
*
*/
public int protocolSwitch;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy