Class AbstractSaslServer

java.lang.Object
org.wildfly.security.sasl.util.AbstractSaslParticipant
org.wildfly.security.sasl.util.AbstractSaslServer
All Implemented Interfaces:
SaslServer, SaslWrapper
Direct Known Subclasses:
AnonymousSaslServer

public abstract class AbstractSaslServer extends AbstractSaslParticipant implements SaslServer
A base class for SASL client implementations.
Author:
David M. Lloyd
  • Constructor Details

    • AbstractSaslServer

      protected AbstractSaslServer(String mechanismName, String protocol, String serverName, CallbackHandler callbackHandler, ElytronMessages log)
      Construct a new instance.
      Parameters:
      mechanismName - the name of the defined mechanism
      protocol - the protocol
      serverName - the server name
      callbackHandler - the callback handler
      log - mechanism specific logger
    • AbstractSaslServer

      @Deprecated protected AbstractSaslServer(String mechanismName, String protocol, String serverName, CallbackHandler callbackHandler)
      Deprecated.
      Construct a new instance.
      Parameters:
      mechanismName - the name of the defined mechanism
      protocol - the protocol
      serverName - the server name
      callbackHandler - the callback handler
  • Method Details

    • evaluateResponse

      public byte[] evaluateResponse(byte[] response) throws SaslException
      Evaluate an authentication response received from the client.
      Specified by:
      evaluateResponse in interface SaslServer
      Parameters:
      response - the authentication response
      Returns:
      the next challenge to send to the client
      Throws:
      SaslException - if there is an error processing the client message