Java SaslServer evaluateResponse() method with example method Evaluates the response data and generates a challenge. If a response is received from the client during the authentication process, this method is called to prepare an appropriate next challenge to submit to the client. The challenge is null if the authentication has succeeded and no more challenge data is to be sent to the client. It is non-null if the authentication must be continued by sending a challenge to the client, or if the authentication has succeeded but challenge data needs to be processed by the client.
isComplete() should be called after each call to
evaluateResponse(),to determine if any further response is needed from the client.

SaslServer evaluateResponse() method Signature

byte[] evaluateResponse(byte[] response) throws SaslException


response – The non-null (but possibly empty) response sent by the client.


The possibly null challenge to send to the client. It is null if the authentication has succeeded and there is no more challenge data to be sent to the client.


SaslException – If an error occurred while processing the response or generating a challenge. method Implementation

byte[] evaluateResponse(byte[] response) throws SaslException{

SaslServer evaluateResponse() method Example


public class EvaluateResponseMethodExample {

	public static void main(String[] args) {




Ask your questions in eHowToNow Forum

Post your technical, non-technical doubts, questions in our site. Get answer as soon as possible, meanwhile you can help others by answering, unanswered questions.
To Ask new Question : Ask Question
Check our existing discussions : Questions & Answers

  1. Java – DateTimeException Exception
  2. java.awt.geom Package
  3. Java Rectangle move() method with example
  4. Java – LOCATION_FORWARD Interface
  5. Java TreeModelEvent getPath() method with example
  6. Java – AccessibleValue Interface
  7. Java SynthToolBarUI installDefaults() method with example
  8. Java JTextComponent setComponentOrientation() method with example
  9. Java DynAny insert_any() method with example
  10. Java Scrollbar getValueIsAdjusting() method with example
  11. Java Context composeName() method with example
  12. Java DefaultKeyboardFocusManager enqueueKeyEvents() method with example
  13. Java ButtonModel setSelected() method with example
  14. Java LocalDate isSupported() method with example 1
  15. Java Parser parse() method with example

Be the first to comment