driver-core/src/main/com/mongodb/ConnectionString.java
@Deprecated
    public List<MongoCredential> getCredentialList() {
        return credential != null ? singletonList(credential) : Collections.<MongoCredential>emptyList();
    }
@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.

@return the credentials in an immutable list
@deprecated Prefer {@link #getCredential()}