- java.lang.Object
-
- org.redkale.net.http.HttpRpcSecretAuthenticator
-
- 所有已实现的接口:
HttpRpcAuthenticator
public class HttpRpcSecretAuthenticator extends Object implements HttpRpcAuthenticator
rpc鉴权验证器Secret key的实现类
详情见: https://redkale.org
- 从以下版本开始:
- 2.7.0
- 作者:
- zhangjx
-
-
构造器概要
构造器 构造器 说明 HttpRpcSecretAuthenticator()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanauth(HttpRequest request, HttpResponse response)成功返回true, 不成功返回false,且需要response.finish()输出失败的信息, 比如404voidinit(AnyValue config)初始化方法-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.redkale.net.http.HttpRpcAuthenticator
destroy
-
-
-
-
字段详细资料
-
secretKey
protected String secretKey
-
-
方法详细资料
-
init
public void init(AnyValue config)
从接口复制的说明:HttpRpcAuthenticator初始化方法- 指定者:
init在接口中HttpRpcAuthenticator- 参数:
config- 配置参数
-
auth
public boolean auth(HttpRequest request, HttpResponse response)
从接口复制的说明:HttpRpcAuthenticator成功返回true, 不成功返回false,且需要response.finish()输出失败的信息, 比如404- 指定者:
auth在接口中HttpRpcAuthenticator- 参数:
request- HttpRequestresponse- HttpResponse- 返回:
- 是否验证成功
-
-