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:
javax.security.sasl.SaslServer
Direct Known Subclasses:
NtlmSaslServer, PlainSaslServer

public abstract class AbstractSaslServer
extends java.lang.Object
implements javax.security.sasl.SaslServer

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

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
AbstractSaslServer(LdapSession ldapSession, CoreSession adminSession, org.apache.directory.shared.ldap.message.internal.InternalBindRequest bindRequest)
           
 
Method Summary
 void dispose()
          
 CoreSession getAdminSession()
           
 java.lang.String getAuthorizationID()
          
 org.apache.directory.shared.ldap.message.internal.InternalBindRequest getBindRequest()
           
 LdapSession getLdapSession()
           
 java.lang.Object getNegotiatedProperty(java.lang.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,
                          CoreSession adminSession,
                          org.apache.directory.shared.ldap.message.internal.InternalBindRequest bindRequest)
Method Detail

unwrap

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

Specified by:
unwrap in interface javax.security.sasl.SaslServer
Throws:
javax.security.sasl.SaslException

wrap

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

Specified by:
wrap in interface javax.security.sasl.SaslServer
Throws:
javax.security.sasl.SaslException

getBindRequest

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

getLdapSession

public LdapSession getLdapSession()
Returns:
the associated ioSession

getAdminSession

public CoreSession getAdminSession()
Returns:
the admin Session

getAuthorizationID

public java.lang.String getAuthorizationID()

Specified by:
getAuthorizationID in interface javax.security.sasl.SaslServer

getNegotiatedProperty

public java.lang.Object getNegotiatedProperty(java.lang.String propName)

Specified by:
getNegotiatedProperty in interface javax.security.sasl.SaslServer

dispose

public void dispose()
             throws javax.security.sasl.SaslException

Specified by:
dispose in interface javax.security.sasl.SaslServer
Throws:
javax.security.sasl.SaslException


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.