/** * The server is challenging the SASL authentication we just sent. Forward the challenge * to the current SASLMechanism we are using. The SASLMechanism will eventually send a response to * the server. The length of the challenge-response sequence varies according to the * SASLMechanism in use. * * @param challenge a base64 encoded string representing the challenge. * @param finalChallenge true if this is the last challenge send by the server within the success stanza * @throws SmackException * @throws InterruptedException */ public void challengeReceived(String challenge, boolean finalChallenge) throws SmackException, InterruptedException { try { currentMechanism.challengeReceived(challenge, finalChallenge); } catch (InterruptedException | SmackException e) { authenticationFailed(e); throw e; } }
/** * Notification message saying that SASL authentication has failed. The server may have * closed the connection depending on the number of possible retries. * * @param saslFailure the SASL failure as reported by the server * @see <a href="https://tools.ietf.org/html/rfc6120#section-6.5">RFC6120 6.5</a> */ public void authenticationFailed(SASLFailure saslFailure) { authenticationFailed(new SASLErrorException(currentMechanism.getName(), saslFailure)); }
if ("urn:ietf:params:xml:ns:xmpp-sasl".equals(parser.getNamespace(null))) { final SASLFailure failure = PacketParserUtils.parseSASLFailure(parser); getSASLAuthentication().authenticationFailed(failure);
getSASLAuthentication().authenticationFailed(failure); break;
/** * Notification message saying that SASL authentication has failed. The server may have * closed the connection depending on the number of possible retries. * * @deprecated replaced by {@see #authenticationFailed(String)}. */ void authenticationFailed() { authenticationFailed(null); }
/** * Notification message saying that SASL authentication has failed. The server may have * closed the connection depending on the number of possible retries. * * @deprecated replaced by {@see #authenticationFailed(String)}. */ void authenticationFailed() { authenticationFailed(null); }
/** * Notification message saying that SASL authentication has failed. The server may have * closed the connection depending on the number of possible retries. * * @deprecated replaced by {@see #authenticationFailed(String)}. */ void authenticationFailed() { authenticationFailed(null); }
/** * The server is challenging the SASL authentication we just sent. Forward the challenge * to the current SASLMechanism we are using. The SASLMechanism will eventually send a response to * the server. The length of the challenge-response sequence varies according to the * SASLMechanism in use. * * @param challenge a base64 encoded string representing the challenge. * @param finalChallenge true if this is the last challenge send by the server within the success stanza * @throws SmackException * @throws InterruptedException */ public void challengeReceived(String challenge, boolean finalChallenge) throws SmackException, InterruptedException { try { currentMechanism.challengeReceived(challenge, finalChallenge); } catch (InterruptedException | SmackException e) { authenticationFailed(e); throw e; } }
/** * Notification message saying that SASL authentication has failed. The server may have * closed the connection depending on the number of possible retries. * * @param saslFailure the SASL failure as reported by the server * @see <a href="https://tools.ietf.org/html/rfc6120#section-6.5">RFC6120 6.5</a> */ public void authenticationFailed(SASLFailure saslFailure) { authenticationFailed(new SASLErrorException(currentMechanism.getName(), saslFailure)); }
connection.getSASLAuthentication().authenticationFailed();
connection.getSASLAuthentication().authenticationFailed(failure.getCondition());
connection.getSASLAuthentication().authenticationFailed();
connection.getSASLAuthentication().authenticationFailed(failure.getCondition());
if ("urn:ietf:params:xml:ns:xmpp-sasl".equals(parser.getNamespace(null))) { final Failure failure = PacketParserUtils.parseSASLFailure(parser); connection.getSASLAuthentication().authenticationFailed(); connection.processPacket(failure);