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

Examples of org.apache.jackrabbit.oak.spi.security.SecurityConfiguration$Default


    //-------------------------------------------< ServiceTrackerCustomizer >---
    @Override
    public Object addingService(ServiceReference reference) {
        Object service = super.addingService(reference);
        if (service instanceof SecurityConfiguration) {
            SecurityConfiguration sc = (SecurityConfiguration) service;
            synchronized (this) {
                serviceMap.put(sc.getName(), sc);
            }

            if (service instanceof ConfigurationBase) {
                ((ConfigurationBase) service).setSecurityProvider(this);
            }
View Full Code Here


    public ConfigurationParameters getParameters(@Nullable String name) {
        if (name == null) {
            return config;
        }
        ConfigurationParameters params = config.getConfigValue(name, ConfigurationParameters.EMPTY);
        SecurityConfiguration sc = serviceMap.get(name);
        if (sc != null) {
            return ConfigurationParameters.newInstance(params, sc.getParameters());
        } else {
            return params;
        }
    }
View Full Code Here

    //-------------------------------------------< ServiceTrackerCustomizer >---
    @Override
    public Object addingService(ServiceReference reference) {
        Object service = super.addingService(reference);
        if (service instanceof SecurityConfiguration) {
            SecurityConfiguration sc = (SecurityConfiguration) service;

            if (sc instanceof TokenConfiguration) {
                tokenConfiguration.services.add((TokenConfiguration) sc);
            } else {
                synchronized (this) {
                    serviceMap.put(sc.getName(), sc);
                }
            }

            if (service instanceof ConfigurationBase) {
                ((ConfigurationBase) service).setSecurityProvider(this);
View Full Code Here

    @Override
    public void removedService(ServiceReference reference, Object service) {
        super.removedService(reference, service);
        if (service instanceof SecurityConfiguration) {
            SecurityConfiguration sc = (SecurityConfiguration) service;
            if (sc instanceof TokenConfiguration) {
                tokenConfiguration.services.remove(sc);
            } else {
                synchronized (this) {
                    serviceMap.remove(((SecurityConfiguration) service).getName());
View Full Code Here

    public ConfigurationParameters getParameters(@Nullable String name) {
        if (name == null) {
            return config;
        }
        ConfigurationParameters params = config.getConfigValue(name, ConfigurationParameters.EMPTY);
        SecurityConfiguration sc = serviceMap.get(name);
        if (sc != null) {
            return ConfigurationParameters.of(params, sc.getParameters());
        } else {
            return params;
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.spi.security.SecurityConfiguration$Default

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.