public void updateKeys ( XMPPConnection connection ) throws InterruptedException , SmackException . NotConnectedException , SmackException . NoResponseException , XMPPException . XMPPErrorException , PubSubException . NotALeafNodeException , PubSubException . NotAPubSubNodeException , IOException { PublicKeysListElement metadata = OpenPgpPubSubUtil . fetchPubkeysList ( connection , getJid ( ) ) ; if ( metadata == null ) { return ; } updateKeys ( connection , metadata ) ; }
Update the contacts keys by consulting the users PubSub nodes . This method fetches the users metadata node and then tries to fetch any announced keys .