use of com.hazelcast.config.PermissionPolicyConfig in project hazelcast by hazelcast.
the class MemberDomConfigProcessor method handlePermissionPolicy.
private void handlePermissionPolicy(Node node) {
Node classNameNode = getNamedItemNode(node, "class-name");
String className = getTextContent(classNameNode);
SecurityConfig cfg = config.getSecurityConfig();
PermissionPolicyConfig policyConfig = new PermissionPolicyConfig(className);
cfg.setClientPolicyConfig(policyConfig);
for (Node child : childElements(node)) {
String nodeName = cleanNodeName(child);
if (matches("properties", nodeName)) {
fillProperties(child, policyConfig.getProperties());
break;
}
}
}
Aggregations