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;
}
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;
}
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;
}
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;
}
Aggregations