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 LongStream distinct() method with example
  2. Java BasicScrollPaneUI updateRowHeader() method with example
  3. Java – Painter Interface
  4. java.awt.event Package
  5. Java IndexColorModel createCompatibleWritableRaster() method with example
  6. Java _DynUnionStub insert_typecode() method with example
  7. Java IndexedPropertyChangeEvent getIndex() method with example
  8. Java KeyManagerFactory getInstance() method with example 2
  9. Java InputMap keys() method with example
  10. Java Chronology dateEpochDay() method with example
  11. Java SynthStyle uninstallDefaults() method with example
  12. Java BreakIteratorProvider getWordInstance() method with example
  13. Java KerberosKey getFormat() method with example
  14. Java ClassDefinition getDefinitionClass() method with example
  15. Java DefaultEditorKit.InsertTabAction actionPerformed() method with example

Be the first to comment

Leave a Reply