Java SaslClient evaluateChallenge() method with example

javax.security.sasl.SaslClient.evaluateChallenge() method Evaluates the challenge data and generates a response. If a challenge is received from the server during the authentication process, this method is called to prepare an appropriate next response to submit to the server.

SaslClient evaluateChallenge() method Signature

byte[] evaluateChallenge(byte[] challenge) throws SaslException

Parameters:

challenge – The non-null challenge sent from the server. The challenge array may have zero length.

Returns:

The possibly null response to send to the server. It is null if the challenge accompanied a “SUCCESS” status and the challenge only contains data for the client to update its state and no response needs to be sent to the server. The response is a zero-length byte array if the client is to send a response with no data.

Throws:

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

javax.security.sasl.SaslClient.evaluateChallenge() method Implementation

byte[] evaluateChallenge(byte[] challenge) throws SaslException{
}

SaslClient evaluateChallenge() method Example

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

public class EvaluateChallengeMethodExample {

	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 – CancellationException Exception
  2. Java BasicBorders getRadioButtonBorder() method with example
  3. Java ParameterModeHelper type() method with example
  4. Java DefaultHandler2 getExternalSubset() method with example
  5. Java TemporalQueries localTime() method with example
  6. Java RTFEditorKit write() method with example 1
  7. Java DropTargetListener drop() method with example
  8. Java Logger exiting() method with example
  9. Java Context list() method with example 1
  10. Java PrinterJob defaultPage() method with example 1
  11. Java Rdn unescapeValue() method with example
  12. Java MonitorNotification getDerivedGauge() method with example
  13. Java DefaultEditorKit.CutAction actionPerformed() method with example
  14. Java CharsetEncoder encode() method with example
  15. Java WindowFocusListener windowGainedFocus() method with example

Be the first to comment

Leave a Reply