Java SaslServer evaluateResponse() method with example

javax.security.sasl.SaslServer.evaluateResponse() 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

Parameters:

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

Returns:

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.

Throws:

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

javax.security.sasl.SaslServer.evaluateResponse() method Implementation

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

SaslServer evaluateResponse() method Example

package com.ehowtonow.javax.security.sasl.saslserver;

public class EvaluateResponseMethodExample {

	public static void main(String[] args) {

	}

}

Output


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