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 AbstractQueuedLongSynchronizer.ConditionObject await() method with example
  2. Java Util copyObjects() method with example
  3. Java Element getName() method with example 1
  4. Java JSplitPane.AccessibleJSplitPane getMaximumAccessibleValue() method with example
  5. Java JTable setPreferredScrollableViewportSize() method with example
  6. Java URLConnection getHeaderFieldDate() method with example
  7. How to send Email with Attachment using Java
  8. Java InputStream read_wchar() method with example
  9. Java JComboBox setLightWeightPopupEnabled() method with example
  10. Java ZoneRules toString() method with example
  11. Java JDialog setLayeredPane() method with example
  12. Java BeanContext getResourceAsStream() method with example
  13. Java AttributeList getValue() method with example 1
  14. Java SAXSource sourceToInputSource() method with example
  15. Java SynthProgressBarUI propertyChange() method with example

Be the first to comment