jboss-sasl 1.0.0.Beta1

org.jboss.sasl.util
Class AbstractSaslServer

java.lang.Object
  extended by org.jboss.sasl.util.AbstractSaslParticipant
      extended by 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

Field Summary
 
Fields inherited from class org.jboss.sasl.util.AbstractSaslParticipant
NO_BYTES
 
Constructor Summary
protected AbstractSaslServer(String mechanismName, String protocol, String serverName, CallbackHandler callbackHandler)
          Construct a new instance.
 
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
 
Methods inherited from interface javax.security.sasl.SaslServer
dispose, getAuthorizationID, getMechanismName, getNegotiatedProperty, isComplete, unwrap, wrap
 

Constructor Detail

AbstractSaslServer

protected AbstractSaslServer(String mechanismName,
                             String protocol,
                             String serverName,
                             CallbackHandler callbackHandler)
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

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

jboss-sasl 1.0.0.Beta1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.