All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.canoo.dp.impl.server.security.SecurityDefaultValueProvider Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.0.0.CR5
Show newest version
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