@NonNull
    public static Credentials getCredentials(final int usernamePreferenceKey, final int passwordPreferenceKey) {
        final String username = StringUtils.trim(getString(usernamePreferenceKey, StringUtils.EMPTY));
        final String password = getString(passwordPreferenceKey, StringUtils.EMPTY);
        return new Credentials(username, password);
    }
Get login and password information from preference key id.

@param usernamePreferenceKey Username preference key id
@param passwordPreferenceKey Password preference key id
@return the credential information
main/src/main/java/cgeo/geocaching/settings/Settings.java