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 X509KeyManager getCertificateChain() method with example
  2. Java JMXConnector connect() method with example
  3. Java AttributeChangeNotificationFilter disableAllAttributes() method with example
  4. Java Statement execute() method with example 2
  5. Java MemoryUsage toString() method with example
  6. Java MethodHandle asFixedArity() method with example
  7. Java ServerRequestInterceptorOperations receive_request() method with example
  8. Java DebugGraphics drawOval() method with example
  9. Java FileTime toString() method with example
  10. Java JTree getLeadSelectionPath() method with example
  11. Java ElementFilter fieldsIn() method with example
  12. Java PixelGrabber setPixels() method with example
  13. Java MethodType parameterType() method with example
  14. Java AbstractDocument.DefaultDocumentEvent toString() method with example
  15. Java JTable.AccessibleJTable getAccessibleAt() method with example

Be the first to comment

Leave a Reply