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
- Direct Known Subclasses:
AnonymousSaslServer
A base class for SASL client implementations.
- Author:
- David M. Lloyd
-
Field Summary
Fields inherited from class org.wildfly.security.sasl.util.AbstractSaslParticipant
COMPLETE_STATE, FAILED_STATE, NO_BYTESFields inherited from interface org.wildfly.security.sasl.util.SaslWrapper
IDENTITY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSaslServer(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 Summary
Modifier and TypeMethodDescriptionbyte[]evaluateResponse(byte[] response) Evaluate an authentication response received from the client.Methods inherited from class org.wildfly.security.sasl.util.AbstractSaslParticipant
assertComplete, dispose, evaluateMessage, evaluateMessage, getCallbackHandler, getIntProperty, getMechanismName, getNegotiatedProperty, getProtocol, getServerName, getStringProperty, getWrapper, handleCallbacks, init, isComplete, negotiationComplete, setNegotiationState, setWrapper, tryHandleCallbacks, unwrap, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.security.sasl.SaslServer
dispose, getAuthorizationID, getMechanismName, getNegotiatedProperty, isComplete, unwrap, wrap
-
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 mechanismprotocol- the protocolserverName- the server namecallbackHandler- the callback handlerlog- 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 mechanismprotocol- the protocolserverName- the server namecallbackHandler- the callback handler
-
-
Method Details
-
evaluateResponse
Evaluate an authentication response received from the client.- Specified by:
evaluateResponsein interfaceSaslServer- 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
-