It is required but now DigestAuthenticate extends BasicAuthenticate and its constructor already sets the realm.