diff options
author | Dan Timoney <dtimoney@att.com> | 2019-05-30 18:32:14 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-05-30 18:32:14 +0000 |
commit | 32d132a78288521798d302cafbd9a7eac9121cae (patch) | |
tree | 838588d4a6cb8441cc9e20c92b93ddc2ab5ac059 /ms/blueprintsprocessor/modules | |
parent | b86fe0e27bc66ecae386007c1d751f82cbf920cd (diff) | |
parent | a3d9ac859fa47f2aa2849160e08c7a3c1048589e (diff) |
Merge "Remote AWX ansible playbook executor"
Diffstat (limited to 'ms/blueprintsprocessor/modules')
-rw-r--r-- | ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BluePrintRestLibPropertyService.kt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BluePrintRestLibPropertyService.kt b/ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BluePrintRestLibPropertyService.kt index a6bbc39d8..da4d9933f 100644 --- a/ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BluePrintRestLibPropertyService.kt +++ b/ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BluePrintRestLibPropertyService.kt @@ -56,6 +56,9 @@ open class BluePrintRestLibPropertyService(private var bluePrintProperties: RestLibConstants.TYPE_BASIC_AUTH -> { basicAuthRestClientProperties(prefix) } + RestLibConstants.TYPE_TOKEN_AUTH -> { + tokenRestClientProperties(prefix) + } RestLibConstants.TYPE_SSL_BASIC_AUTH -> { sslBasicAuthRestClientProperties(prefix) } @@ -141,6 +144,12 @@ open class BluePrintRestLibPropertyService(private var bluePrintProperties: } } + private fun tokenRestClientProperties(prefix: String): + TokenAuthRestClientProperties { + return bluePrintProperties.propertyBeanType( + prefix, TokenAuthRestClientProperties::class.java) + } + private fun basicAuthRestClientProperties(prefix: String): BasicAuthRestClientProperties { return bluePrintProperties.propertyBeanType( |