Fixing Blueprint Typo's and docs
[ccsdk/cds.git] / ms / blueprintsprocessor / modules / commons / rest-lib / src / main / kotlin / org / onap / ccsdk / cds / blueprintsprocessor / rest / BluePrintRestLibData.kt
1 /*
2  * Copyright © 2017-2018 AT&T Intellectual Property.
3  * Modifications Copyright © 2019 Huawei.
4  * Modifications Copyright © 2019 Bell Canada.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *     http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18
19 package org.onap.ccsdk.cds.blueprintsprocessor.rest
20
21 open class RestClientProperties {
22
23     lateinit var type: String
24     lateinit var url: String
25     var additionalHeaders: Map<String, String>? = null
26 }
27
28 open class SSLRestClientProperties : RestClientProperties() {
29
30     lateinit var keyStoreInstance: String // JKS, PKCS12
31     lateinit var sslTrust: String
32     lateinit var sslTrustPassword: String
33     var sslTrustIgnoreHostname: Boolean = false
34     var sslKey: String? = null
35     var sslKeyPassword: String? = null
36 }
37
38 // FIXME("Define basic auth userName and password properties")
39 open class SSLBasicAuthRestClientProperties : SSLRestClientProperties() {
40
41     var basicAuth: BasicAuthRestClientProperties? = null
42 }
43
44 // FIXME("Define token properties")
45 open class SSLTokenAuthRestClientProperties : SSLRestClientProperties() {
46
47     var tokenAuth: TokenAuthRestClientProperties? = null
48 }
49
50 open class BasicAuthRestClientProperties : RestClientProperties() {
51
52     lateinit var password: String
53     lateinit var username: String
54 }
55
56 open class TokenAuthRestClientProperties : RestClientProperties() {
57
58     var token: String? = null
59 }
60
61 open class PolicyManagerRestClientProperties : RestClientProperties() {
62
63     lateinit var env: String
64     lateinit var clientAuth: String
65     lateinit var authorisation: String
66 }