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 – JSpinner.ListEditor Class
  2. Java ConfirmationCallback getOptionType() method with example
  3. Java AttributeSetUtilities synchronizedView() method with example 3
  4. Java OpenMBeanParameterInfo hashCode() method with example
  5. Java – AudioPermission Class
  6. Java Timer stop() method with example 1
  7. Java AbstractQueuedLongSynchronizer isQueued() method with example
  8. Java AbstractDocument.AbstractElement getName() method with example
  9. Java – Locale.Category Class
  10. Java – Entity Class
  11. Java AbstractColorChooserPanel paint() method with example
  12. Java PSSParameterSpec getSaltLength() method with example
  13. Java ThreadPolicyValue value() method with example
  14. Java – ComponentColorModel Class
  15. Java JTextComponent.AccessibleJTextComponent getAccessibleRole() method with example

Be the first to comment