Package org.apache.jackrabbit.oak.spi.security.authentication.token

Examples of org.apache.jackrabbit.oak.spi.security.authentication.token.CompositeTokenConfiguration


    }

    protected void bindTokenConfiguration(@Nonnull ServiceReference reference) {
        // replace composite configuration if needed
        if (!(tokenConfiguration instanceof CompositeTokenConfiguration)) {
            tokenConfiguration = new CompositeTokenConfiguration(this);
        }
        ((CompositeTokenConfiguration) tokenConfiguration).addConfiguration(
                (TokenConfiguration) initConfiguration(reference));
    }
View Full Code Here


    }

    protected void bindTokenConfiguration(@Nonnull ServiceReference reference) {
        // replace composite configuration if needed
        if (!(tokenConfiguration instanceof CompositeTokenConfiguration)) {
            tokenConfiguration = new CompositeTokenConfiguration(this);
        }
        ((CompositeTokenConfiguration) tokenConfiguration).addConfiguration(
                (TokenConfiguration) initConfiguration(reference));
    }
View Full Code Here

public class CompositeTokenConfigurationTest extends AbstractCompositeConfigurationTest<TokenConfiguration> {

    @Override
    public void before() throws Exception {
        super.before();
        setCompositeConfiguration(new CompositeTokenConfiguration(getSecurityProvider()));
    }
View Full Code Here

        assertEquals(0, configs.size());
    }

    @Test
    public void testGetTokenProvider() {
        CompositeTokenConfiguration ctc = (CompositeTokenConfiguration) getCompositeConfiguration();

        TokenProvider tp = ctc.getTokenProvider(root);
        assertNotNull(tp);
        assertFalse(tp instanceof CompositeTokenProvider);

        TokenConfiguration tc = new TokenConfigurationImpl(getSecurityProvider());
        setDefault(tc);
        tp = ctc.getTokenProvider(root);
        assertNotNull(tp);
        assertFalse(tp instanceof CompositeTokenProvider);
        assertTrue(tp instanceof TokenProviderImpl);

        addConfiguration(tc);
        tp = ctc.getTokenProvider(root);
        assertNotNull(tp);
        assertFalse(tp instanceof CompositeTokenProvider);
        assertTrue(tp instanceof TokenProviderImpl);

        addConfiguration(new TokenConfigurationImpl(getSecurityProvider()));
        tp = ctc.getTokenProvider(root);
        assertNotNull(tp);
        assertTrue(tp instanceof CompositeTokenProvider);
    }
View Full Code Here

    }

    protected void bindTokenConfiguration(@Nonnull ServiceReference reference) {
        // replace composite configuration if needed
        if (!(tokenConfiguration instanceof CompositeTokenConfiguration)) {
            tokenConfiguration = new CompositeTokenConfiguration(this);
        }
        ((CompositeTokenConfiguration) tokenConfiguration).addConfiguration(
                (TokenConfiguration) initConfiguration(reference, ConfigurationParameters.EMPTY));
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.spi.security.authentication.token.CompositeTokenConfiguration

Copyright © 2018 www.massapicom. 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.