类 DefaultAccessAuthenticationHook
java.lang.Object
com.iohao.game.external.core.hook.internal.DefaultAccessAuthenticationHook
- 所有已实现的接口:
AccessAuthenticationHook
- 作者:
- 渔民小镇
- 日期:
- 2023-02-19
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddIgnoreAuthCmd(int cmd) 添加需要忽略的主路由,这些忽略的主路由不需要登录也能访问voidaddIgnoreAuthCmd(int cmd, int subCmd) 添加需要忽略的路由,这些忽略的路由不需要登录也能访问voidaddRejectionCmd(int cmd) 添加拒绝访问的主路由,这些主路由不能由外部直接访问voidaddRejectionCmd(int cmd, int subCmd) 添加拒绝访问的路由,这些路由不能由外部直接访问voidclear()清除所有的忽略的路由和拒绝路由数据配置booleanpass(boolean loginSuccess, int cmdMerge) 访问验证booleanreject(int cmdMerge) 拒绝访问的路由voidremoveIgnoreAuthCmd(int cmd) 移除需要忽略的路由voidremoveIgnoreAuthCmd(int cmd, int subCmd) 移除需要忽略的路由voidremoveRejectCmd(int cmd) 移除拒绝访问的路由voidremoveRejectCmd(int cmd, int subCmd) 移除拒绝访问的路由从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.iohao.game.external.core.hook.AccessAuthenticationHook
setVerifyIdentity
-
构造器详细资料
-
DefaultAccessAuthenticationHook
public DefaultAccessAuthenticationHook()
-
-
方法详细资料
-
addIgnoreAuthCmd
public void addIgnoreAuthCmd(int cmd, int subCmd) 从接口复制的说明:AccessAuthenticationHook添加需要忽略的路由,这些忽略的路由不需要登录也能访问- 指定者:
addIgnoreAuthCmd在接口中AccessAuthenticationHook- 参数:
cmd- cmdsubCmd- subCmd
-
addIgnoreAuthCmd
public void addIgnoreAuthCmd(int cmd) 从接口复制的说明:AccessAuthenticationHook添加需要忽略的主路由,这些忽略的主路由不需要登录也能访问- 指定者:
addIgnoreAuthCmd在接口中AccessAuthenticationHook- 参数:
cmd- 主路由
-
removeIgnoreAuthCmd
public void removeIgnoreAuthCmd(int cmd, int subCmd) 从接口复制的说明:AccessAuthenticationHook移除需要忽略的路由- 指定者:
removeIgnoreAuthCmd在接口中AccessAuthenticationHook- 参数:
cmd- cmdsubCmd- subCmd
-
removeIgnoreAuthCmd
public void removeIgnoreAuthCmd(int cmd) 从接口复制的说明:AccessAuthenticationHook移除需要忽略的路由- 指定者:
removeIgnoreAuthCmd在接口中AccessAuthenticationHook- 参数:
cmd- cmd
-
pass
public boolean pass(boolean loginSuccess, int cmdMerge) 从接口复制的说明:AccessAuthenticationHook访问验证通过的验证,可以访问游戏逻辑服的业务方法- 指定者:
pass在接口中AccessAuthenticationHook- 参数:
loginSuccess- true 表示玩家登录成功UserSession.isVerifyIdentity()cmdMerge- 路由- 返回:
- true 通过访问验证
-
addRejectionCmd
public void addRejectionCmd(int cmd) 从接口复制的说明:AccessAuthenticationHook添加拒绝访问的主路由,这些主路由不能由外部直接访问这里的外部指的是玩家- 指定者:
addRejectionCmd在接口中AccessAuthenticationHook- 参数:
cmd- 主路由
-
addRejectionCmd
public void addRejectionCmd(int cmd, int subCmd) 从接口复制的说明:AccessAuthenticationHook添加拒绝访问的路由,这些路由不能由外部直接访问这里的外部指的是玩家- 指定者:
addRejectionCmd在接口中AccessAuthenticationHook- 参数:
cmd- 主路由subCmd- 子路由
-
removeRejectCmd
public void removeRejectCmd(int cmd, int subCmd) 从接口复制的说明:AccessAuthenticationHook移除拒绝访问的路由- 指定者:
removeRejectCmd在接口中AccessAuthenticationHook- 参数:
cmd- 主路由subCmd- 子路由
-
removeRejectCmd
public void removeRejectCmd(int cmd) 从接口复制的说明:AccessAuthenticationHook移除拒绝访问的路由- 指定者:
removeRejectCmd在接口中AccessAuthenticationHook- 参数:
cmd- 主路由
-
reject
public boolean reject(int cmdMerge) 从接口复制的说明:AccessAuthenticationHook拒绝访问的路由当为 true 时,玩家不能访问此路由地址- 指定者:
reject在接口中AccessAuthenticationHook- 参数:
cmdMerge- 路由- 返回:
- true 表示玩家不能访问此路由
-
clear
public void clear()从接口复制的说明:AccessAuthenticationHook清除所有的忽略的路由和拒绝路由数据配置- 指定者:
clear在接口中AccessAuthenticationHook
-