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 TextLayout getCaretInfo() method with example
  2. Java JTable setColumnModel() method with example
  3. Java SynthOptionPaneUI getContext() method with example
  4. Java KeyAgreementSpi engineDoPhase() method with example
  5. Java SOAPPart getContentId() method with example
  6. Java – Entity Interface
  7. Java StyleContext getForeground() method with example
  8. Java CallableStatement setByte() method with example
  9. Java CookiePolicy shouldAccept() method with example
  10. Java Duration hashCode() method with example
  11. Java BasicDesktopIconUI getMaximumSize() method with example
  12. Java – SliderUI Class
  13. Java XMLStreamReader getTextLength() method with example
  14. Java InetSocketAddress equals() method with example
  15. Java InitialContext init() method with example

Be the first to comment