public static void setCredentials(@NonNull final ICredentials connector, final Credentials credentials) {
        putString(connector.getUsernamePreferenceKey(), credentials.getUsernameRaw());
        putString(connector.getPasswordPreferenceKey(), credentials.getPasswordRaw());
    }
Set login and password information.

@param connector   the connector to retrieve the login information from
@param credentials the credential information to store
main/src/main/java/cgeo/geocaching/settings/Settings.java