Package org.wildfly.security.sasl.util
Class AbstractSaslServer
- java.lang.Object
- 
- org.wildfly.security.sasl.util.AbstractSaslParticipant
- 
- org.wildfly.security.sasl.util.AbstractSaslServer
 
 
- 
- All Implemented Interfaces:
- SaslServer,- SaslWrapper
 
 public abstract class AbstractSaslServer extends AbstractSaslParticipant implements SaslServer A base class for SASL client implementations.- Author:
- David M. Lloyd
 
- 
- 
Field Summary- 
Fields inherited from class org.wildfly.security.sasl.util.AbstractSaslParticipantCOMPLETE_STATE, FAILED_STATE, NO_BYTES
 - 
Fields inherited from interface org.wildfly.security.sasl.util.SaslWrapperIDENTITY
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractSaslServer(String mechanismName, String protocol, String serverName, CallbackHandler callbackHandler)Deprecated.protectedAbstractSaslServer(String mechanismName, String protocol, String serverName, CallbackHandler callbackHandler, ElytronMessages log)Construct a new instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]evaluateResponse(byte[] response)Evaluate an authentication response received from the client.- 
Methods inherited from class org.wildfly.security.sasl.util.AbstractSaslParticipantassertComplete, dispose, evaluateMessage, evaluateMessage, getCallbackHandler, getIntProperty, getMechanismName, getNegotiatedProperty, getProtocol, getServerName, getStringProperty, getWrapper, handleCallbacks, init, isComplete, negotiationComplete, setNegotiationState, setWrapper, tryHandleCallbacks, unwrap, wrap
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface javax.security.sasl.SaslServerdispose, getAuthorizationID, getMechanismName, getNegotiatedProperty, isComplete, unwrap, wrap
 
- 
 
- 
- 
- 
Constructor Detail- 
AbstractSaslServerprotected 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 Detail- 
evaluateResponsepublic byte[] evaluateResponse(byte[] response) throws SaslExceptionEvaluate an authentication response received from the client.- Specified by:
- evaluateResponsein 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
 
 
- 
 
-