接口 Authenticator
-
- 所有已知实现类:
AccessKeyAuthenticator
@SPI("accessKey") public interface Authenticator
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidauthenticate(Invocation invocation, URL url)verify the signature of the request is valid or notvoidsign(Invocation invocation, URL url)give a sign to request
-
-
-
方法详细资料
-
sign
void sign(Invocation invocation, URL url)
give a sign to request- 参数:
invocation-url-
-
authenticate
void authenticate(Invocation invocation, URL url) throws RpcAuthenticationException
verify the signature of the request is valid or not- 参数:
invocation-url-- 抛出:
RpcAuthenticationException- when failed to authenticate current invocation
-
-