public final void challengeReceived ( String challengeString , boolean finalChallenge ) throws SmackSaslException , InterruptedException , NotConnectedException { byte [ ] challenge = Base64 . decode ( ( challengeString != null && challengeString . equals ( "=" ) ) ? "" : challengeString ) ; byte [ ] response = evaluateChallenge ( challenge ) ; if ( finalChallenge ) { return ; } Response responseStanza ; if ( response == null ) { responseStanza = new Response ( ) ; } else { responseStanza = new Response ( Base64 . encodeToString ( response ) ) ; } // Send the authentication to the server connection . sendNonza ( responseStanza ) ; }
The server is challenging the SASL mechanism for the stanza he just sent . Send a response to the server s challenge .