提交 f2dcde94 编写于 作者: H hujie

clean

上级 1e3c1841
......@@ -21,6 +21,6 @@ import org.apache.rocketmq.acl.plug.entity.AuthenticationResult;
public interface AclRemotingServer {
public AuthenticationResult eachCheck(AccessControl accessControl);
public AuthenticationResult check(AccessControl accessControl);
}
......@@ -30,7 +30,7 @@ public class DefaultAclRemotingServerImpl implements AclRemotingServer {
}
@Override
public AuthenticationResult eachCheck(AccessControl accessControl) {
public AuthenticationResult check(AccessControl accessControl) {
AuthenticationResult authenticationResult = aclPlugEngine.eachCheckLoginAndAuthentication(accessControl);
if (authenticationResult.getException() != null) {
throw new AclPlugRuntimeException(String.format("eachCheck the inspection appear exception, accessControl data is %s", accessControl.toString()), authenticationResult.getException());
......
......@@ -525,7 +525,7 @@ public class BrokerController {
accessControl.setNetaddress(StringUtils.split(remoteAddr, ":")[0]);
accessControl.setTopic(extFields.get("topic"));
}
aclRemotingServe.eachCheck(accessControl);
aclRemotingServe.check(accessControl);
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册