2 * Copyright © 2017-2018 AT&T Intellectual Property.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.onap.ccsdk.cds.blueprintsprocessor.rest
19 open class RestClientProperties {
20 lateinit var type: String
21 lateinit var url: String
24 open class BasicAuthRestClientProperties : RestClientProperties() {
25 lateinit var password: String
26 lateinit var username: String
29 open class TokenAuthRestClientProperties : RestClientProperties() {
30 var token: String? = null
33 open class SSLBasicAuthRestClientProperties : RestClientProperties() {
34 lateinit var keyStoreInstance: String // JKS, PKCS12
35 lateinit var sslTrust: String
36 lateinit var sslTrustPassword: String
37 lateinit var sslKey: String
38 lateinit var sslKeyPassword: String
41 open class DME2RestClientProperties : RestClientProperties() {
42 lateinit var service: String
43 lateinit var subContext: String
44 lateinit var version: String
45 lateinit var envContext: String
46 lateinit var routeOffer: String
47 var partner: String? = null
48 lateinit var appId: String
51 open class PolicyManagerRestClientProperties : RestClientProperties() {
52 lateinit var env: String
53 lateinit var clientAuth: String
54 lateinit var authorisation: String