org.jboss.sasl.util
Class AbstractSaslServer
java.lang.Object
org.jboss.sasl.util.AbstractSaslParticipant
org.jboss.sasl.util.AbstractSaslServer
- All Implemented Interfaces:
- SaslServer
- Direct Known Subclasses:
- AnonymousSaslServer
public abstract class AbstractSaslServer
- extends AbstractSaslParticipant
- implements SaslServer
A base class for SASL client implementations.
- Author:
- David M. Lloyd
Method Summary |
byte[] |
evaluateResponse(byte[] response)
Evaluate an authentication response received from the client. |
Methods inherited from class org.jboss.sasl.util.AbstractSaslParticipant |
dispose, getCallbackHandler, getContext, getMechanismName, getNegotiatedProperty, getProtocol, getServerName, getWrapper, handleCallbacks, isComplete, setWrapper, tryHandleCallbacks, unwrap, wrap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSaslServer
protected AbstractSaslServer(String mechanismName,
String protocol,
String serverName,
CallbackHandler callbackHandler)
- Construct a new instance.
- Parameters:
mechanismName
- the name of the defined mechanismprotocol
- the protocolserverName
- the server namecallbackHandler
- the callback handler
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 response to send to the server
- Throws:
SaslException
- if there is an error processing the server message
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.