Search in sources :

Example 1 with SecurityInterceptor

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);
}
Also used : SecurityInterceptor(com.hazelcast.security.SecurityInterceptor) SecurityInterceptorConfig(com.hazelcast.config.SecurityInterceptorConfig) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Example 2 with SecurityInterceptor

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);
}
Also used : SecurityInterceptor(com.hazelcast.security.SecurityInterceptor) SecurityInterceptorConfig(com.hazelcast.config.SecurityInterceptorConfig) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Aggregations

SecurityInterceptorConfig (com.hazelcast.config.SecurityInterceptorConfig)2 SecurityInterceptor (com.hazelcast.security.SecurityInterceptor)2 QuickTest (com.hazelcast.test.annotation.QuickTest)2 Test (org.junit.Test)2