Examples of PrincipalProvider


Examples of org.apache.jackrabbit.oak.spi.security.principal.PrincipalProvider

        return principals;
    }

    private PrincipalProvider getPrincipalProvider() {
        PrincipalProvider principalProvider = null;
        if (callbackHandler != null) {
            try {
                PrincipalProviderCallback principalCallBack = new PrincipalProviderCallback();
                callbackHandler.handle(new Callback[] {principalCallBack});
                principalProvider = principalCallBack.getPrincipalProvider();
View Full Code Here

Examples of org.candlepin.guice.PrincipalProvider

        }
    }

    @Test
    public void testApply() throws IOException {
        PrincipalProvider pp = mock(PrincipalProvider.class);
        when(pp.get()).thenReturn(TestUtil.createPrincipal("admin", null, null));
        EventFactory factory = new EventFactory(pp);
        Consumer c = TestUtil.createConsumer();
        Event e = factory.consumerCreated(c);

        String value = publisher.apply(e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.