Search in sources :

Example 1 with ConfigurationBase

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

the class SecurityProviderImpl method initConfiguration.

private <T extends SecurityConfiguration> T initConfiguration(@Nonnull T config, @Nonnull ConfigurationParameters params) {
    if (config instanceof ConfigurationBase) {
        ConfigurationBase cfg = (ConfigurationBase) config;
        cfg.setSecurityProvider(this);
        cfg.setParameters(ConfigurationParameters.of(params, cfg.getParameters()));
    }
    return config;
}
Also used : ConfigurationBase(org.apache.jackrabbit.oak.spi.security.ConfigurationBase)

Example 2 with ConfigurationBase

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

the class SecurityProviderImpl method initConfiguration.

private <T extends SecurityConfiguration> T initConfiguration(@Nonnull T config) {
    if (config instanceof ConfigurationBase) {
        ConfigurationBase cfg = (ConfigurationBase) config;
        cfg.setSecurityProvider(this);
        cfg.setParameters(ConfigurationParameters.of(ConfigurationParameters.EMPTY, cfg.getParameters()));
    }
    return config;
}
Also used : ConfigurationBase(org.apache.jackrabbit.oak.spi.security.ConfigurationBase)

Example 3 with ConfigurationBase

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

the class ConfigurationInitializer method initializeConfiguration.

@Nonnull
static <T extends SecurityConfiguration> T initializeConfiguration(@Nonnull SecurityProvider securityProvider, @Nonnull T configuration, @Nonnull ConfigurationParameters parameters) {
    if (configuration instanceof ConfigurationBase) {
        ConfigurationBase base = (ConfigurationBase) configuration;
        base.setSecurityProvider(securityProvider);
        base.setParameters(ConfigurationParameters.of(base.getParameters(), parameters));
    }
    return configuration;
}
Also used : ConfigurationBase(org.apache.jackrabbit.oak.spi.security.ConfigurationBase) Nonnull(javax.annotation.Nonnull)

Example 4 with ConfigurationBase

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

the class UserPrincipalProviderWithCacheTest method changeUserConfiguration.

private UserConfiguration changeUserConfiguration(ConfigurationParameters params) {
    UserConfiguration userConfig = getUserConfiguration();
    ((ConfigurationBase) userConfig).setParameters(params);
    return userConfig;
}
Also used : ConfigurationBase(org.apache.jackrabbit.oak.spi.security.ConfigurationBase) UserConfiguration(org.apache.jackrabbit.oak.spi.security.user.UserConfiguration)

Aggregations

ConfigurationBase (org.apache.jackrabbit.oak.spi.security.ConfigurationBase)4 Nonnull (javax.annotation.Nonnull)1 UserConfiguration (org.apache.jackrabbit.oak.spi.security.user.UserConfiguration)1