Getting sender from Component packet
I've extended AbstractMessageReceiver and overridden processPacket(Packet). I want to get the user who sent the message. If I use packet.getFrom() or packet.getPacketFrom() it returns me "firstname.lastname@example.org". I am forced to use packet.getStanzaFrom() to get the correct JID.
However, I'm concerned this is a security risk - could a user fake communication from another by simply spoofing their from="" in the packet? If so, is there a better way of getting the sender?