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.stereotype.Component;
28 @ConfigurationProperties(prefix = "ssl")
30 public class SSLAuthenticationHelper implements Serializable {
32 private boolean clientCertificateEnabled;
33 private String clientCertificateDir;
34 private String clientCertificatePassword;
35 private String trustStoreDir;
36 private String trustStorePassword;
38 public boolean isClientCertificateEnabled() {
39 return clientCertificateEnabled;
42 public void setClientCertificateEnabled(boolean clientCertificateEnabled) {
43 this.clientCertificateEnabled = clientCertificateEnabled;
46 public String getClientCertificateDir() {
47 return clientCertificateDir;
50 public void setClientCertificateDir(String clientCertificateDir) {
51 this.clientCertificateDir = clientCertificateDir;
54 public String getClientCertificatePassword() {
55 return clientCertificatePassword;
58 public void setClientCertificatePassword(String clientCertificatePassword) {
59 this.clientCertificatePassword = clientCertificatePassword;
62 public String getTrustStoreDir() {
66 public void setTrustStoreDir(String trustStoreDir) {
67 this.trustStoreDir = trustStoreDir;
70 public String getTrustStorePassword() {
71 return trustStorePassword;
74 public void setTrustStorePassword(String trustStorePassword) {
75 this.trustStorePassword = trustStorePassword;