eda17ef27313e757e8f123b36e5f5c0d973fd85e
[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.context.annotation.Primary;
26 import org.springframework.stereotype.Component;
27
28 @Component
29 @ConfigurationProperties(prefix = "ssl")
30 @RefreshScope
31 @Primary
32 public class SSLAuthenticationHelper implements Serializable {
33
34     private boolean clientCertificateEnabled;
35     private String clientCertificateDir;
36     private String clientCertificatePassword;
37     private String trustStoreDir;
38     private String trustStorePassword;
39
40     public boolean isClientCertificateEnabled() {
41         return clientCertificateEnabled;
42     }
43
44     public void setClientCertificateEnabled(boolean clientCertificateEnabled) {
45         this.clientCertificateEnabled = clientCertificateEnabled;
46     }
47
48     public String getClientCertificateDir() {
49         return clientCertificateDir;
50     }
51
52     public void setClientCertificateDir(String clientCertificateDir) {
53         this.clientCertificateDir = clientCertificateDir;
54     }
55
56     public String getClientCertificatePassword() {
57         return clientCertificatePassword;
58     }
59
60     public void setClientCertificatePassword(String clientCertificatePassword) {
61         this.clientCertificatePassword = clientCertificatePassword;
62     }
63
64     public String getTrustStoreDir() {
65         return trustStoreDir;
66     }
67
68     public void setTrustStoreDir(String trustStoreDir) {
69         this.trustStoreDir = trustStoreDir;
70     }
71
72     public String getTrustStorePassword() {
73         return trustStorePassword;
74     }
75
76     public void setTrustStorePassword(String trustStorePassword) {
77         this.trustStorePassword = trustStorePassword;
78     }
79 }