11/*
2- * Copyright IBM Corporation 2017
2+ * Copyright IBM Corporation 2018
33*
44* Licensed under the Apache License, Version 2.0 (the "License");
55* you may not use this file except in compliance with the License.
1616
1717import Foundation
1818
19- /// HDBaaSCredentials class
19+ /// HyperSecureDBaaSCredentials class
2020///
21- /// Contains the credentials for a HDBaaS service instance.
21+ /// Contains the credentials for a HyperSecureDBaaS service instance.
2222public class HyperSecureDBaaSCredentials {
2323 public let uri : String
2424 public let host : String
@@ -46,7 +46,7 @@ public class HyperSecureDBaaSCredentials {
4646
4747extension CloudEnv {
4848
49- /// Returns a HDBaaSCredentials object with the corresponding credentials.
49+ /// Returns a HyperSecureDBaaSCredentials object with the corresponding credentials.
5050 ///
5151 /// - Parameter name: The key to lookup the credentials object.
5252 public func getHyperSecureDBaaSCredentials( name: String ) -> HyperSecureDBaaSCredentials ? {
@@ -55,10 +55,6 @@ extension CloudEnv {
5555 return nil
5656 }
5757
58- // For detail on the format for the URI connection string that MongoDB supports,
59- // see: https://docs.mongodb.com/manual/reference/connection-string/
60- // It is possible to specify more than one host in the URI connection string
61-
6258 guard let uri = credentials [ " url " ] as? String ,
6359 let cert = credentials [ " cert " ] as? String else {
6460 return nil
@@ -94,5 +90,4 @@ extension CloudEnv {
9490 password: password,
9591 port: port)
9692 }
97-
9893}
0 commit comments