2 * ============LICENSE_START=======================================================
3 * Copyright (C) 2018 Intel. All rights reserved.
4 * Modifications Copyright (C) 2021 Bell Canada. All rights reserved.
5 * ================================================================================
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
18 * SPDX-License-Identifier: Apache-2.0
19 * ============LICENSE_END=========================================================
22 package org.onap.policy.distribution.reception.handling.sdc;
24 import java.util.List;
25 import lombok.AllArgsConstructor;
26 import org.onap.sdc.api.consumer.IConfiguration;
29 * This class represents the configurations needed for SDC Client.
33 public class SdcConfiguration implements IConfiguration {
35 private SdcReceptionHandlerConfigurationParameterGroup configParameters;
38 public String getAsdcAddress() {
39 return configParameters.getAsdcAddress();
43 public List<String> getMsgBusAddress() {
44 return configParameters.getMessageBusAddress();
48 public String getUser() {
49 return configParameters.getUser();
53 public String getPassword() {
54 return configParameters.getPassword();
58 public int getPollingInterval() {
59 return configParameters.getPollingInterval();
63 public int getPollingTimeout() {
64 return configParameters.getPollingTimeout();
68 public List<String> getRelevantArtifactTypes() {
69 return configParameters.getArtifactTypes();
73 public String getConsumerGroup() {
74 return configParameters.getConsumerGroup();
78 public String getEnvironmentName() {
79 return configParameters.getEnvironmentName();
83 public String getConsumerID() {
84 return configParameters.getConsumerId();
88 public String getKeyStorePassword() {
89 return configParameters.getKeyStorePassword();
93 public String getKeyStorePath() {
94 return configParameters.getKeyStorePath();
98 public boolean activateServerTLSAuth() {
99 return configParameters.isActiveServerTlsAuth();
103 public boolean isFilterInEmptyResources() {
104 return configParameters.isFilterInEmptyResources();
108 public Boolean isUseHttpsWithDmaap() {
109 return configParameters.isUseHttpsWithDmaap();
113 public Boolean isUseHttpsWithSDC() {
114 return configParameters.isUseHttpsWithSdc();