package org.ovirt.engine.core.bll.adbroker;

public class LdapCredentials {
    private String userName;
    private String password;

    public LdapCredentials(String userName, String password) {
        this.userName = userName;
        this.password = password;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}

package org.ovirt.engine.core.bll.adbroker;

public class LdapCredentials {
    private String userName;
    private String password;

    public LdapCredentials(String userName, String password) {
        this.userName = userName;
        this.password = password;
    }

    public String getUserName() {
        return userName;
    }

    public String getPassword() {
        return password;
    }
}

Make LdapCredentials immutable