class Credentials implements Comparable<Credentials> {

    public String getPassword() {
        if(StringUtils.isEmpty(password)) {
            if(this.isAnonymousLogin()) {
                return PreferencesFactory.get().getProperty("connection.login.anon.pass");
            }
        }
        return password;
    }

    public  Credentials();
    public  Credentials(final Credentials copy);
    public  Credentials(final String user);
    public  Credentials(final String user, final String password);
    public  Credentials(final String user, final String password, final String token);

}