Search in sources :

Example 1 with PermissionPolicyConfig

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;
        }
    }
}
Also used : SecurityConfig(com.hazelcast.config.SecurityConfig) PermissionPolicyConfig(com.hazelcast.config.PermissionPolicyConfig) Node(org.w3c.dom.Node)

Aggregations

PermissionPolicyConfig (com.hazelcast.config.PermissionPolicyConfig)1 SecurityConfig (com.hazelcast.config.SecurityConfig)1 Node (org.w3c.dom.Node)1