QoS anonymous access authentication extension point.
org.apache.dubbo.qos.permission.PermissionChecker
Dubbo QoS dubbo.application.qos-anonymous-access-permission-level
Anonymous access permission verification.
org.apache.dubbo.qos.permission.DefaultAnonymousAccessPermissionChecker
Maven project structure:
src
|-main
|-java
|-com
|-xxx
|-XxxPermissionChecker.java (implements PermissionChecker interface)
|-resources
|-META-INF
|-dubbo
|-org.apache.dubbo.qos.permission.PermissionChecker` (plain text file, content: qosPermissionChecker=com.xxx.XxxPermissionChecker)
XxxPermissionChecker.java:
package com.xxx.qos.permission;
import org.apache.dubbo.qos.permission.PermissionChecker;
public class XxxAnonymousAccessPermissionChecker implements PermissionChecker {
@Override
public boolean access(CommandContext commandContext, PermissionLevel defaultCmdRequiredPermissionLevel) {
//...
}
}
META-INF/dubbo/org.apache.dubbo.qos.permission.PermissionChecker:
qosPermissionChecker=com.xxx.XxxPermissionChecker