@ Deprecated public List < MongoCredential > getCredentialList ( ) { return credential != null ? singletonList ( credential ) : Collections . < MongoCredential > emptyList ( ) ; }
Gets the credentials in an immutable list . The list will be empty if no credentials were specified in the connection string .