40b8ab30b2013a6521465131887368862f437b59
[integration.git] /
1 /*
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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=========================================================
19  */
20 package org.onap.pnfsimulator.simulator.client.utils.ssl;
21
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;
26
27 @Component
28 @ConfigurationProperties(prefix = "ssl")
29 @RefreshScope
30 public class SSLAuthenticationHelper implements Serializable {
31
32     private boolean clientCertificateEnabled;
33     private String clientCertificateDir;
34     private String clientCertificatePassword;
35     private String trustStoreDir;
36     private String trustStorePassword;
37
38     public boolean isClientCertificateEnabled() {
39         return clientCertificateEnabled;
40     }
41
42     public void setClientCertificateEnabled(boolean clientCertificateEnabled) {
43         this.clientCertificateEnabled = clientCertificateEnabled;
44     }
45
46     public String getClientCertificateDir() {
47         return clientCertificateDir;
48     }
49
50     public void setClientCertificateDir(String clientCertificateDir) {
51         this.clientCertificateDir = clientCertificateDir;
52     }
53
54     public String getClientCertificatePassword() {
55         return clientCertificatePassword;
56     }
57
58     public void setClientCertificatePassword(String clientCertificatePassword) {
59         this.clientCertificatePassword = clientCertificatePassword;
60     }
61
62     public String getTrustStoreDir() {
63         return trustStoreDir;
64     }
65
66     public void setTrustStoreDir(String trustStoreDir) {
67         this.trustStoreDir = trustStoreDir;
68     }
69
70     public String getTrustStorePassword() {
71         return trustStorePassword;
72     }
73
74     public void setTrustStorePassword(String trustStorePassword) {
75         this.trustStorePassword = trustStorePassword;
76     }
77 }