Support disabling host verification in naming service
[ccsdk/apps.git] / ms / neng / src / main / java / org / onap / ccsdk / apps / ms / neng / extinf / props / PolicyManagerProps.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : CCSDK.apps
4  * ================================================================================
5  * Copyright (C) 2018 AT&T Intellectual Property. 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
21 package org.onap.ccsdk.apps.ms.neng.extinf.props;
22
23 import org.springframework.boot.context.properties.ConfigurationProperties;
24 import org.springframework.context.annotation.Configuration;
25
26 /**
27  * POJO for representing properties related to policy manager.
28  */
29 @Configuration
30 @ConfigurationProperties(prefix = "policymgr")
31 public class PolicyManagerProps {
32     String clientAuth;
33     String basicAuth;
34     String url;
35     String version;
36     String environment;
37     String ecompRequestId;
38     Boolean disableHostVerification = Boolean.FALSE;
39
40     /**
41      * Property passed to policy manager in the ClientAuth header.
42      */
43     public String getClientAuth() {
44         return clientAuth;
45     }
46
47     public void setClientAuth(String clientAuth) {
48         this.clientAuth = clientAuth;
49     }
50
51     /**
52      * Property passed to policy manager in the BasicAuth header.
53      */
54     public String getBasicAuth() {
55         return basicAuth;
56     }
57
58
59     public void setBasicAuth(String basicAuth) {
60         this.basicAuth = basicAuth;
61     }
62
63     /**
64      * URL of the policy manager.
65      */
66     public String getUrl() {
67         return url;
68     }
69
70     public void setUrl(String url) {
71         this.url = url;
72     }
73
74     /**
75      * Property passed to policy manager in the Environment header.
76      */
77     public String getEnvironment() {
78         return environment;
79     }
80
81     public void setEnvironment(String environment) {
82         this.environment = environment;
83     }
84
85     /**
86      * Property passed to policy manager in the X-ECOMP-RequestID header.
87      */
88     public String getEcompRequestId() {
89         return ecompRequestId;
90     }
91
92     public void setEcompRequestId(String ecompRequestId) {
93         this.ecompRequestId = ecompRequestId;
94     }
95
96     /**
97      * Version of the policy manager -- '1' for the First version '2' for second version etc.
98      */
99     public String getVersion() {
100         return version;
101     }
102
103     public void setVersion(String version) {
104         this.version = version;
105     }
106
107     /**
108      * Disable host name verification
109      */
110     public Boolean getDisableHostVerification() {
111         return disableHostVerification;
112     }
113
114     public void setDisableHostVerification(Boolean disableHostVerification) {
115         this.disableHostVerification = disableHostVerification;
116     }
117 }