use of com.hazelcast.config.SecurityInterceptorConfig in project hazelcast by hazelcast.
the class SecureApplicationContextTest method testSecurityInterceptors.
@Test
public void testSecurityInterceptors() {
List<SecurityInterceptorConfig> interceptorConfigs = securityConfig.getSecurityInterceptorConfigs();
assertEquals(1, interceptorConfigs.size());
SecurityInterceptorConfig interceptorConfig = interceptorConfigs.get(0);
String className = interceptorConfig.getClassName();
assertEquals(DummySecurityInterceptor.class.getName(), className);
SecurityInterceptor securityInterceptor = interceptorConfig.getImplementation();
assertTrue(securityInterceptor instanceof DummySecurityInterceptor);
}
use of com.hazelcast.config.SecurityInterceptorConfig in project hazelcast by hazelcast.
the class MemberDomConfigProcessor method handleSecurityInterceptorsChild.
protected void handleSecurityInterceptorsChild(SecurityConfig cfg, Node child) {
String nodeName = cleanNodeName(child);
if (matches("interceptor", nodeName)) {
Node classNameNode = getNamedItemNode(child, "class-name");
String className = getTextContent(classNameNode);
cfg.addSecurityInterceptorConfig(new SecurityInterceptorConfig(className));
}
}
use of com.hazelcast.config.SecurityInterceptorConfig in project hazelcast by hazelcast.
the class TestSecureApplicationContext method testSecurityInterceptors.
@Test
public void testSecurityInterceptors() {
List<SecurityInterceptorConfig> interceptorConfigs = securityConfig.getSecurityInterceptorConfigs();
assertEquals(1, interceptorConfigs.size());
SecurityInterceptorConfig interceptorConfig = interceptorConfigs.get(0);
String className = interceptorConfig.getClassName();
assertEquals(DummySecurityInterceptor.class.getName(), className);
SecurityInterceptor securityInterceptor = interceptorConfig.getImplementation();
assertTrue(securityInterceptor instanceof DummySecurityInterceptor);
}
use of com.hazelcast.config.SecurityInterceptorConfig in project hazelcast by hazelcast.
the class YamlMemberDomConfigProcessor method handleSecurityInterceptorsChild.
@Override
protected void handleSecurityInterceptorsChild(SecurityConfig cfg, Node child) {
String className = child.getTextContent();
cfg.addSecurityInterceptorConfig(new SecurityInterceptorConfig(className));
}
Aggregations