com.canoo.dp.impl.server.security.SecurityDefaultValueProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dolphin-platform-security-server Show documentation
Show all versions of dolphin-platform-security-server Show documentation
The Dolphin Platform is a framework that implements the presentation model pattern and provides amodern way to create enterprise applications. The Platform provides several client implementations that all canbe used in combination with a general sever API.
package com.canoo.dp.impl.server.security;
import com.canoo.platform.server.spi.ConfigurationProviderAdapter;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class SecurityDefaultValueProvider extends ConfigurationProviderAdapter {
@Override
public Map getStringProperties() {
HashMap ret = new HashMap<>();
ret.put(KeycloakConfiguration.SECURITY_REALM_PROPERTY_NAME, KeycloakConfiguration.SECURITY_REALM_PROPERTY_DEFAULT_VALUE);
ret.put(KeycloakConfiguration.SECURITY_APPLICATION_PROPERTY_NAME, KeycloakConfiguration.SECURITY_APPLICATION_PROPERTY_DEFAULT_VALUE);
ret.put(KeycloakConfiguration.SECURITY_SERVER_URL_PROPERTY_NAME, KeycloakConfiguration.SECURITY_SERVER_URL_PROPERTY_DEFAULT_PROPERTY);
return ret;
}
@Override
public Map getBooleanProperties() {
return Collections.singletonMap(KeycloakConfiguration.SECURITY_ACTIVE_PROPERTY_NAME, KeycloakConfiguration.SECURITY_ACTIVE_PROPERTY_DEFAULT_VALUE);
}
@Override
public Map> getListProperties() {
return Collections.singletonMap(KeycloakConfiguration.SECURE_ENDPOINTS_PROPERTY_NAME, Collections.singletonList(KeycloakConfiguration.SECURE_ENDPOINTS_PROPERTY_DEFAULT_VALUE));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy