public void authenticated ( Success success ) throws SmackException , InterruptedException { // RFC6120 6.3.10 "At the end of the authentication exchange, the SASL server (the XMPP // "receiving entity") can include "additional data with success" if appropriate for the // SASL mechanism in use. In XMPP, this is done by including the additional data as the XML // character data of the <success/> element." The used SASL mechanism should be able to // verify the data send by the server in the success stanza, if any. if ( success . getData ( ) != null ) { challengeReceived ( success . getData ( ) , true ) ; } currentMechanism . checkIfSuccessfulOrThrow ( ) ; authenticationSuccessful = true ; // Wake up the thread that is waiting in the #authenticate method synchronized ( this ) { notify ( ) ; } }
Notification message saying that SASL authentication was successful . The next step would be to bind the resource .