2 * Copyright © 2017-2018 AT&T Intellectual Property.
3 * Modifications Copyright © 2019 Huawei.
4 * Modifications Copyright © 2019 Bell Canada.
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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 package org.onap.ccsdk.cds.blueprintsprocessor.rest
21 open class RestClientProperties {
23 lateinit var type: String
24 lateinit var url: String
25 var additionalHeaders: Map<String, String>? = null
28 open class SSLRestClientProperties : RestClientProperties() {
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
38 open class SSLBasicAuthRestClientProperties : SSLRestClientProperties() {
39 lateinit var password: String
40 lateinit var username: String
43 // FIXME("Define token properties")
44 open class SSLTokenAuthRestClientProperties : SSLRestClientProperties() {
46 var tokenAuth: TokenAuthRestClientProperties? = null
49 open class BasicAuthRestClientProperties : RestClientProperties() {
51 lateinit var password: String
52 lateinit var username: String
55 open class TokenAuthRestClientProperties : RestClientProperties() {
57 var token: String? = null
60 open class PolicyManagerRestClientProperties : RestClientProperties() {
62 lateinit var env: String
63 lateinit var clientAuth: String
64 lateinit var authorisation: String