Search in sources :

Example 1 with PrincipalManagerImpl

use of org.apache.jackrabbit.oak.spi.security.principal.PrincipalManagerImpl in project jackrabbit-oak by apache.

the class PrincipalConfigurationImplTest method testGetPrincipalManager3.

@Test
public void testGetPrincipalManager3() {
    PrincipalManager pm = pc2.getPrincipalManager(root, NamePathMapper.DEFAULT);
    assertNotNull(pm);
    assertTrue(pm instanceof PrincipalManagerImpl);
}
Also used : PrincipalManager(org.apache.jackrabbit.api.security.principal.PrincipalManager) PrincipalManagerImpl(org.apache.jackrabbit.oak.spi.security.principal.PrincipalManagerImpl) AbstractSecurityTest(org.apache.jackrabbit.oak.AbstractSecurityTest) Test(org.junit.Test)

Example 2 with PrincipalManagerImpl

use of org.apache.jackrabbit.oak.spi.security.principal.PrincipalManagerImpl in project jackrabbit-oak by apache.

the class PrincipalConfigurationImplTest method testGetPrincipalManager2.

@Test
public void testGetPrincipalManager2() {
    pc1.setSecurityProvider(getSecurityProvider());
    PrincipalManager pm = pc1.getPrincipalManager(root, NamePathMapper.DEFAULT);
    assertNotNull(pm);
    assertTrue(pm instanceof PrincipalManagerImpl);
}
Also used : PrincipalManager(org.apache.jackrabbit.api.security.principal.PrincipalManager) PrincipalManagerImpl(org.apache.jackrabbit.oak.spi.security.principal.PrincipalManagerImpl) AbstractSecurityTest(org.apache.jackrabbit.oak.AbstractSecurityTest) Test(org.junit.Test)

Aggregations

PrincipalManager (org.apache.jackrabbit.api.security.principal.PrincipalManager)2 AbstractSecurityTest (org.apache.jackrabbit.oak.AbstractSecurityTest)2 PrincipalManagerImpl (org.apache.jackrabbit.oak.spi.security.principal.PrincipalManagerImpl)2 Test (org.junit.Test)2