Determines if two MongoCredentials objects are equivalent
(other: MongoCredentials)
| 149 | |
| 150 | /** Determines if two MongoCredentials objects are equivalent */ |
| 151 | equals(other: MongoCredentials): boolean { |
| 152 | return ( |
| 153 | this.mechanism === other.mechanism && |
| 154 | this.username === other.username && |
| 155 | this.password === other.password && |
| 156 | this.source === other.source |
| 157 | ); |
| 158 | } |
| 159 | |
| 160 | /** |
| 161 | * If the authentication mechanism is set to "default", resolves the authMechanism |