Merge "Complementary Junit test coverage"
[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  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18 package org.onap.ccsdk.cds.blueprintsprocessor.rest
19
20 open class RestClientProperties {
21     lateinit var type: String
22     lateinit var url: String
23 }
24
25 open class SSLRestClientProperties : RestClientProperties() {
26     lateinit var keyStoreInstance: String // JKS, PKCS12
27     lateinit var sslTrust: String
28     lateinit var sslTrustPassword: String
29     var sslKey: String? = null
30     var sslKeyPassword: String? = null
31 }
32
33 open class SSLBasicAuthRestClientProperties : SSLRestClientProperties() {
34     var basicAuth: BasicAuthRestClientProperties? = null
35 }
36
37 open class SSLTokenAuthRestClientProperties : SSLRestClientProperties() {
38     var tokenAuth: TokenAuthRestClientProperties? = null
39 }
40
41 open class BasicAuthRestClientProperties : RestClientProperties() {
42     lateinit var password: String
43     lateinit var username: String
44 }
45
46 open class TokenAuthRestClientProperties : RestClientProperties() {
47     var token: String? = null
48 }
49
50 open class DME2RestClientProperties : RestClientProperties() {
51     lateinit var service: String
52     lateinit var subContext: String
53     lateinit var version: String
54     lateinit var envContext: String
55     lateinit var routeOffer: String
56     var partner: String? = null
57     lateinit var appId: String
58 }
59
60 open class PolicyManagerRestClientProperties : RestClientProperties() {
61     lateinit var env: String
62     lateinit var clientAuth: String
63     lateinit var authorisation: String
64 }