Get user name and password from Auth interceptor

Hi,

I have added one global interceptor. I want to capture auth call parameters(User name and password) in this. I have written bellow mentioned code but unable to get user name and password. Please guid me how can I get user name and password in this interceptor.

public void interceptPacket(Packet p, Session session, boolean incoming, boolean processed) throws PacketRejectedException {

if(incoming){

if (p instanceof IQ) {

IQ packet = (IQ) p;

Element childElement = (packet).getChildElement();

String namespace = null;

if (childElement != null) {

namespace = childElement.getNamespaceURI();

}

System.out.println("namespace: "+namespace);

if (“jabber:iq:auth”.equals(namespace)) {

System.out.println(packet);

}

}

}

}

Thanks…