Search in sources :

Example 1 with CLIMasterService

use of org.apache.knox.gateway.services.security.impl.CLIMasterService in project knox by apache.

the class CLIGatewayServices method init.

public void init(GatewayConfig config, Map<String, String> options) throws ServiceLifecycleException {
    ms = new CLIMasterService();
    ms.init(config, options);
    services.put("MasterService", ms);
    ks = new DefaultKeystoreService();
    ks.setMasterService(ms);
    ks.init(config, options);
    services.put(KEYSTORE_SERVICE, ks);
    DefaultAliasService alias = new DefaultAliasService();
    alias.setKeystoreService(ks);
    alias.init(config, options);
    services.put(ALIAS_SERVICE, alias);
    DefaultCryptoService crypto = new DefaultCryptoService();
    crypto.setKeystoreService(ks);
    crypto.setAliasService(alias);
    crypto.init(config, options);
    services.put(CRYPTO_SERVICE, crypto);
    DefaultTopologyService tops = new DefaultTopologyService();
    tops.init(config, options);
    services.put(TOPOLOGY_SERVICE, tops);
    RemoteConfigurationRegistryClientService registryClientService = RemoteConfigurationRegistryClientServiceFactory.newInstance(config);
    registryClientService.setAliasService(alias);
    registryClientService.init(config, options);
    services.put(REMOTE_REGISTRY_CLIENT_SERVICE, registryClientService);
}
Also used : DefaultKeystoreService(org.apache.knox.gateway.services.security.impl.DefaultKeystoreService) DefaultAliasService(org.apache.knox.gateway.services.security.impl.DefaultAliasService) DefaultTopologyService(org.apache.knox.gateway.services.topology.impl.DefaultTopologyService) RemoteConfigurationRegistryClientService(org.apache.knox.gateway.services.config.client.RemoteConfigurationRegistryClientService) DefaultCryptoService(org.apache.knox.gateway.services.security.impl.DefaultCryptoService) CLIMasterService(org.apache.knox.gateway.services.security.impl.CLIMasterService)

Aggregations

RemoteConfigurationRegistryClientService (org.apache.knox.gateway.services.config.client.RemoteConfigurationRegistryClientService)1 CLIMasterService (org.apache.knox.gateway.services.security.impl.CLIMasterService)1 DefaultAliasService (org.apache.knox.gateway.services.security.impl.DefaultAliasService)1 DefaultCryptoService (org.apache.knox.gateway.services.security.impl.DefaultCryptoService)1 DefaultKeystoreService (org.apache.knox.gateway.services.security.impl.DefaultKeystoreService)1 DefaultTopologyService (org.apache.knox.gateway.services.topology.impl.DefaultTopologyService)1