use of com.hazelcast.security.SecurityInterceptor 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.security.SecurityInterceptor 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);
}
Aggregations