org.apache.directory.server.ldap.handlers.bind
Class AbstractSaslServer

java.lang.Object
  extended by org.apache.directory.server.ldap.handlers.bind.AbstractSaslServer
All Implemented Interfaces:
SaslServer
Direct Known Subclasses:
NtlmSaslServer, PlainSaslServer

public abstract class AbstractSaslServer
extends Object
implements SaslServer

An abstract class containing common parts for the SaslServer local implementation, like the BindRequest;

Author:
Apache Directory Project

Constructor Summary
AbstractSaslServer(LdapSession ldapSession, org.apache.directory.server.core.api.CoreSession adminSession, org.apache.directory.shared.ldap.model.message.BindRequest bindRequest)
           
 
Method Summary
 void dispose()
          
 org.apache.directory.server.core.api.CoreSession getAdminSession()
           
 String getAuthorizationID()
          
 org.apache.directory.shared.ldap.model.message.BindRequest getBindRequest()
           
 LdapSession getLdapSession()
           
 Object getNegotiatedProperty(String propName)
          
 byte[] unwrap(byte[] incoming, int offset, int len)
           NOT IMPLEMENTED
 byte[] wrap(byte[] outgoing, int offset, int len)
           NOT IMPLEMENTED
 
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
evaluateResponse, getMechanismName, isComplete
 

Constructor Detail

AbstractSaslServer

public AbstractSaslServer(LdapSession ldapSession,
                          org.apache.directory.server.core.api.CoreSession adminSession,
                          org.apache.directory.shared.ldap.model.message.BindRequest bindRequest)
Method Detail

unwrap

public byte[] unwrap(byte[] incoming,
                     int offset,
                     int len)
              throws SaslException
NOT IMPLEMENTED

Specified by:
unwrap in interface SaslServer
Throws:
SaslException

wrap

public byte[] wrap(byte[] outgoing,
                   int offset,
                   int len)
            throws SaslException
NOT IMPLEMENTED

Specified by:
wrap in interface SaslServer
Throws:
SaslException

getBindRequest

public org.apache.directory.shared.ldap.model.message.BindRequest getBindRequest()
Returns:
the associated BindRequest object

getLdapSession

public LdapSession getLdapSession()
Returns:
the associated ioSession

getAdminSession

public org.apache.directory.server.core.api.CoreSession getAdminSession()
Returns:
the admin Session

getAuthorizationID

public String getAuthorizationID()

Specified by:
getAuthorizationID in interface SaslServer

getNegotiatedProperty

public Object getNegotiatedProperty(String propName)

Specified by:
getNegotiatedProperty in interface SaslServer

dispose

public void dispose()
             throws SaslException

Specified by:
dispose in interface SaslServer
Throws:
SaslException


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.