class PlayerAuthBuilderHelper {

    static PlayerAuth createPlayerAuth(Player player, HashedPassword hashedPassword, String email) {
        return PlayerAuth.builder()
            .name(player.getName().toLowerCase())
            .realName(player.getName())
            .password(hashedPassword)
            .email(email)
            .registrationIp(PlayerUtils.getPlayerIp(player))
            .registrationDate(System.currentTimeMillis())
            .build();
    }

    private  PlayerAuthBuilderHelper();

}