2 * ============LICENSE_START=======================================================
3 * PNF-REGISTRATION-HANDLER
4 * ================================================================================
5 * Copyright (C) 2019 Nokia. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
20 package org.onap.pnfsimulator.simulator.client.utils.ssl;
22 import java.io.Serializable;
23 import org.springframework.boot.context.properties.ConfigurationProperties;
24 import org.springframework.cloud.context.config.annotation.RefreshScope;
25 import org.springframework.context.annotation.Primary;
26 import org.springframework.stereotype.Component;
29 @ConfigurationProperties(prefix = "ssl")
32 public class SSLAuthenticationHelper implements Serializable {
34 private boolean clientCertificateEnabled;
35 private String clientCertificateDir;
36 private String clientCertificatePassword;
37 private String trustStoreDir;
38 private String trustStorePassword;
40 public boolean isClientCertificateEnabled() {
41 return clientCertificateEnabled;
44 public void setClientCertificateEnabled(boolean clientCertificateEnabled) {
45 this.clientCertificateEnabled = clientCertificateEnabled;
48 public String getClientCertificateDir() {
49 return clientCertificateDir;
52 public void setClientCertificateDir(String clientCertificateDir) {
53 this.clientCertificateDir = clientCertificateDir;
56 public String getClientCertificatePassword() {
57 return clientCertificatePassword;
60 public void setClientCertificatePassword(String clientCertificatePassword) {
61 this.clientCertificatePassword = clientCertificatePassword;
64 public String getTrustStoreDir() {
68 public void setTrustStoreDir(String trustStoreDir) {
69 this.trustStoreDir = trustStoreDir;
72 public String getTrustStorePassword() {
73 return trustStorePassword;
76 public void setTrustStorePassword(String trustStorePassword) {
77 this.trustStorePassword = trustStorePassword;