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 GlyphView.GlyphPainter getBoundedPosition() method with example
  2. Java XMLStreamWriter writeStartElement() method with example
  3. Java JInternalFrame isSelected() method with example
  4. Java Duration isShorterThan() method with example
  5. Java PolicyHelper write() method with example
  6. Java StringCharacterIterator previous() method with example
  7. Java MatchResult end() method with example 1
  8. Java MultiViewportUI getAccessibleChild() method with example
  9. Java Configuration getInstance() method with example 1
  10. Java JTable.AccessibleJTable.AccessibleJTableCell getLocation() method with example
  11. Java AlgorithmParametersSpi engineGetEncoded() method with example 1
  12. Java – LdapReferralException Exception
  13. Java – ValidationEventCollector Class
  14. Java Component.BaselineResizeBehavior valueOf() method with example
  15. Java AccessMode valueOf() method with example

Be the first to comment

Leave a Reply