Spring Security Framework

org.springframework.security.ldap
Interface SpringSecurityContextSource

All Superinterfaces:
org.springframework.ldap.core.support.BaseLdapPathContextSource, org.springframework.ldap.core.support.BaseLdapPathSource, org.springframework.ldap.core.ContextSource
All Known Implementing Classes:
DefaultInitialDirContextFactory, DefaultSpringSecurityContextSource

public interface SpringSecurityContextSource
extends org.springframework.ldap.core.support.BaseLdapPathContextSource

Extension of ContextSource which allows binding explicitly as a particular user.

Since:
2.0
Version:
$Id$
Author:
Luke Taylor

Method Summary
 DirContext getReadWriteContext(String userDn, Object credentials)
          Obtains a context using the supplied distinguished name and credentials.
 
Methods inherited from interface org.springframework.ldap.core.ContextSource
getReadOnlyContext, getReadWriteContext
 
Methods inherited from interface org.springframework.ldap.core.support.BaseLdapPathSource
getBaseLdapPath, getBaseLdapPathAsString
 

Method Detail

getReadWriteContext

DirContext getReadWriteContext(String userDn,
                               Object credentials)
Obtains a context using the supplied distinguished name and credentials.

Parameters:
userDn - the distinguished name of the user to authenticate as
credentials - the user's password
Returns:
a context authenticated as the supplied user

Spring Security Framework

Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.