2 * Copyright © 2017-2018 AT&T Intellectual Property.
3 * Modifications Copyright © 2019 Huawei.
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 package org.onap.ccsdk.cds.blueprintsprocessor.rest
20 open class RestClientProperties {
21 lateinit var type: String
22 lateinit var url: String
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
33 open class SSLBasicAuthRestClientProperties : SSLRestClientProperties() {
34 var basicAuth: BasicAuthRestClientProperties? = null
37 open class SSLTokenAuthRestClientProperties : SSLRestClientProperties() {
38 var tokenAuth: TokenAuthRestClientProperties? = null
41 open class BasicAuthRestClientProperties : RestClientProperties() {
42 lateinit var password: String
43 lateinit var username: String
46 open class TokenAuthRestClientProperties : RestClientProperties() {
47 var token: String? = null
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
60 open class PolicyManagerRestClientProperties : RestClientProperties() {
61 lateinit var env: String
62 lateinit var clientAuth: String
63 lateinit var authorisation: String