org.apache.ldap.server.authn
Class AuthenticationService

java.lang.Object
  extended by org.apache.ldap.server.interceptor.BaseInterceptor
      extended by org.apache.ldap.server.authn.AuthenticationService
All Implemented Interfaces:
Interceptor

public class AuthenticationService
extends BaseInterceptor

An Interceptor that authenticates users.

Version:
$Rev: 307234 $, $Date: 2005-10-07 21:43:33 -0400 (Fri, 07 Oct 2005) $
Author:
Apache Directory Project (dev@directory.apache.org), Alex Karasulu (akarasulu@apache.org), Trustin Lee (trustin@apache.org)

Nested Class Summary
 class AuthenticationService.TrustedPrincipalWrapper
          FIXME This doesn't secure anything actually.
 
Field Summary
 java.util.Map authenticators
          authenticators
 
Constructor Summary
AuthenticationService()
          Creates an authentication service interceptor.
 
Method Summary
 void add(NextInterceptor next, java.lang.String upName, javax.naming.Name normName, javax.naming.directory.Attributes entry)
          Filters DirectoryPartition.add(String, Name, Attributes) call.
 void delete(NextInterceptor next, javax.naming.Name name)
          Filters DirectoryPartition.delete(Name) call.
 void destroy()
          Deinitializes and deregisters all Authenticators from this service.
 javax.naming.Name getMatchedName(NextInterceptor next, javax.naming.Name dn, boolean normalized)
          Filters DirectoryPartitionNexus.getMatchedName(Name, boolean) call.
 javax.naming.directory.Attributes getRootDSE(NextInterceptor next)
          Filters DirectoryPartitionNexus.getRootDSE() call.
 javax.naming.Name getSuffix(NextInterceptor next, javax.naming.Name dn, boolean normalized)
          Filters DirectoryPartitionNexus.getSuffix(Name, boolean) call.
 boolean hasEntry(NextInterceptor next, javax.naming.Name name)
          Filters DirectoryPartition.lookup(Name, String[]) call.
 void init(DirectoryServiceConfiguration factoryCfg, InterceptorConfiguration cfg)
          Registers and initializes all Authenticators to this service.
 boolean isSuffix(NextInterceptor next, javax.naming.Name name)
          Filters DirectoryPartition.isSuffix(Name) call.
 javax.naming.NamingEnumeration list(NextInterceptor next, javax.naming.Name base)
          Filters DirectoryPartition.list(Name) call.
 java.util.Iterator listSuffixes(NextInterceptor next, boolean normalized)
          Filters DirectoryPartitionNexus.listSuffixes(boolean) call.
 javax.naming.directory.Attributes lookup(NextInterceptor next, javax.naming.Name name)
          Filters DirectoryPartition.lookup(Name) call.
 javax.naming.directory.Attributes lookup(NextInterceptor next, javax.naming.Name dn, java.lang.String[] attrIds)
          Filters DirectoryPartition.lookup(Name, String[]) call.
 void modify(NextInterceptor next, javax.naming.Name name, int modOp, javax.naming.directory.Attributes mods)
          Filters DirectoryPartition.modify(Name, int, Attributes) call.
 void modify(NextInterceptor next, javax.naming.Name name, javax.naming.directory.ModificationItem[] mods)
          Filters DirectoryPartition.modify(Name, ModificationItem[]) call.
 void modifyRn(NextInterceptor next, javax.naming.Name name, java.lang.String newRn, boolean deleteOldRn)
          Filters DirectoryPartition.modifyRn(Name, String, boolean) call.
 void move(NextInterceptor next, javax.naming.Name oriChildName, javax.naming.Name newParentName)
          Filters DirectoryPartition.move(Name, Name) call.
 void move(NextInterceptor next, javax.naming.Name oriChildName, javax.naming.Name newParentName, java.lang.String newRn, boolean deleteOldRn)
          Filters DirectoryPartition.move(Name, Name, String, boolean) call.
 javax.naming.NamingEnumeration search(NextInterceptor next, javax.naming.Name base, java.util.Map env, org.apache.ldap.common.filter.ExprNode filter, javax.naming.directory.SearchControls searchCtls)
          Filters DirectoryPartition.search(Name, Map, ExprNode, SearchControls) call.
 
Methods inherited from class org.apache.ldap.server.interceptor.BaseInterceptor
addContextPartition, compare, getContext, getPrincipal, removeContextPartition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authenticators

public java.util.Map authenticators
authenticators

Constructor Detail

AuthenticationService

public AuthenticationService()
Creates an authentication service interceptor.

Method Detail

init

public void init(DirectoryServiceConfiguration factoryCfg,
                 InterceptorConfiguration cfg)
          throws javax.naming.NamingException
Registers and initializes all Authenticators to this service.

Specified by:
init in interface Interceptor
Overrides:
init in class BaseInterceptor
Throws:
javax.naming.NamingException

destroy

public void destroy()
Deinitializes and deregisters all Authenticators from this service.

Specified by:
destroy in interface Interceptor
Overrides:
destroy in class BaseInterceptor

add

public void add(NextInterceptor next,
                java.lang.String upName,
                javax.naming.Name normName,
                javax.naming.directory.Attributes entry)
         throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters DirectoryPartition.add(String, Name, Attributes) call.

Specified by:
add in interface Interceptor
Overrides:
add in class BaseInterceptor
Throws:
javax.naming.NamingException

delete

public void delete(NextInterceptor next,
                   javax.naming.Name name)
            throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters DirectoryPartition.delete(Name) call.

Specified by:
delete in interface Interceptor
Overrides:
delete in class BaseInterceptor
Throws:
javax.naming.NamingException

getMatchedName

public javax.naming.Name getMatchedName(NextInterceptor next,
                                        javax.naming.Name dn,
                                        boolean normalized)
                                 throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters DirectoryPartitionNexus.getMatchedName(Name, boolean) call.

Specified by:
getMatchedName in interface Interceptor
Overrides:
getMatchedName in class BaseInterceptor
Throws:
javax.naming.NamingException

getRootDSE

public javax.naming.directory.Attributes getRootDSE(NextInterceptor next)
                                             throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters DirectoryPartitionNexus.getRootDSE() call.

Specified by:
getRootDSE in interface Interceptor
Overrides:
getRootDSE in class BaseInterceptor
Throws:
javax.naming.NamingException

getSuffix

public javax.naming.Name getSuffix(NextInterceptor next,
                                   javax.naming.Name dn,
                                   boolean normalized)
                            throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters DirectoryPartitionNexus.getSuffix(Name, boolean) call.

Specified by:
getSuffix in interface Interceptor
Overrides:
getSuffix in class BaseInterceptor
Throws:
javax.naming.NamingException

hasEntry

public boolean hasEntry(NextInterceptor next,
                        javax.naming.Name name)
                 throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters DirectoryPartition.lookup(Name, String[]) call.

Specified by:
hasEntry in interface Interceptor
Overrides:
hasEntry in class BaseInterceptor
Throws:
javax.naming.NamingException

isSuffix

public boolean isSuffix(NextInterceptor next,
                        javax.naming.Name name)
                 throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters DirectoryPartition.isSuffix(Name) call.

Specified by:
isSuffix in interface Interceptor
Overrides:
isSuffix in class BaseInterceptor
Throws:
javax.naming.NamingException

list

public javax.naming.NamingEnumeration list(NextInterceptor next,
                                           javax.naming.Name base)
                                    throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters DirectoryPartition.list(Name) call.

Specified by:
list in interface Interceptor
Overrides:
list in class BaseInterceptor
Throws:
javax.naming.NamingException

listSuffixes

public java.util.Iterator listSuffixes(NextInterceptor next,
                                       boolean normalized)
                                throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters DirectoryPartitionNexus.listSuffixes(boolean) call.

Specified by:
listSuffixes in interface Interceptor
Overrides:
listSuffixes in class BaseInterceptor
Throws:
javax.naming.NamingException

lookup

public javax.naming.directory.Attributes lookup(NextInterceptor next,
                                                javax.naming.Name dn,
                                                java.lang.String[] attrIds)
                                         throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters DirectoryPartition.lookup(Name, String[]) call.

Specified by:
lookup in interface Interceptor
Overrides:
lookup in class BaseInterceptor
Throws:
javax.naming.NamingException

lookup

public javax.naming.directory.Attributes lookup(NextInterceptor next,
                                                javax.naming.Name name)
                                         throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters DirectoryPartition.lookup(Name) call.

Specified by:
lookup in interface Interceptor
Overrides:
lookup in class BaseInterceptor
Throws:
javax.naming.NamingException

modify

public void modify(NextInterceptor next,
                   javax.naming.Name name,
                   int modOp,
                   javax.naming.directory.Attributes mods)
            throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters DirectoryPartition.modify(Name, int, Attributes) call.

Specified by:
modify in interface Interceptor
Overrides:
modify in class BaseInterceptor
Throws:
javax.naming.NamingException

modify

public void modify(NextInterceptor next,
                   javax.naming.Name name,
                   javax.naming.directory.ModificationItem[] mods)
            throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters DirectoryPartition.modify(Name, ModificationItem[]) call.

Specified by:
modify in interface Interceptor
Overrides:
modify in class BaseInterceptor
Throws:
javax.naming.NamingException

modifyRn

public void modifyRn(NextInterceptor next,
                     javax.naming.Name name,
                     java.lang.String newRn,
                     boolean deleteOldRn)
              throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters DirectoryPartition.modifyRn(Name, String, boolean) call.

Specified by:
modifyRn in interface Interceptor
Overrides:
modifyRn in class BaseInterceptor
Throws:
javax.naming.NamingException

move

public void move(NextInterceptor next,
                 javax.naming.Name oriChildName,
                 javax.naming.Name newParentName,
                 java.lang.String newRn,
                 boolean deleteOldRn)
          throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters DirectoryPartition.move(Name, Name, String, boolean) call.

Specified by:
move in interface Interceptor
Overrides:
move in class BaseInterceptor
Throws:
javax.naming.NamingException

move

public void move(NextInterceptor next,
                 javax.naming.Name oriChildName,
                 javax.naming.Name newParentName)
          throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters DirectoryPartition.move(Name, Name) call.

Specified by:
move in interface Interceptor
Overrides:
move in class BaseInterceptor
Throws:
javax.naming.NamingException

search

public javax.naming.NamingEnumeration search(NextInterceptor next,
                                             javax.naming.Name base,
                                             java.util.Map env,
                                             org.apache.ldap.common.filter.ExprNode filter,
                                             javax.naming.directory.SearchControls searchCtls)
                                      throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters DirectoryPartition.search(Name, Map, ExprNode, SearchControls) call.

Specified by:
search in interface Interceptor
Overrides:
search in class BaseInterceptor
Throws:
javax.naming.NamingException


Copyright © 2002-2005 . All Rights Reserved.