41e45458dc35f93bedcb22d9afe9f21886bb1e6e
[ccsdk/cds.git] /
1 /*
2  * Copyright © 2017-2018 AT&T Intellectual Property.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.onap.ccsdk.apps.blueprintsprocessor.rest
18
19 open class RestClientProperties {
20     lateinit var type: String
21     lateinit var url: String
22     lateinit var userId: String
23 }
24
25 open class BasicAuthRestClientProperties : RestClientProperties() {
26     var token: String? = null
27 }
28
29 open class SSLBasicAuthRestClientProperties : RestClientProperties() {
30     lateinit var keyStoreInstance: String // JKS, PKCS12
31     lateinit var sslTrust: String
32     lateinit var sslTrustPasswd: String
33     lateinit var sslKey: String
34     lateinit var sslKeyPasswd: String
35 }
36
37 open class DME2RestClientProperties : RestClientProperties() {
38     lateinit var service: String
39     lateinit var subContext: String
40     lateinit var version: String
41     lateinit var envContext: String
42     lateinit var routeOffer: String
43     var partner: String? = null
44     lateinit var appId: String
45 }
46
47 open class PolicyManagerRestClientProperties : RestClientProperties() {
48     lateinit var env: String
49     lateinit var clientAuth: String
50     lateinit var authorisation: String
51 }