|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl
public class LDAPInitialDirContextFactoryImpl
Constructor Summary | |
---|---|
LDAPInitialDirContextFactoryImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
javax.naming.directory.InitialDirContext |
getDefaultIntialDirContext()
Use the environment properties and connect to the LDAP server. |
javax.naming.directory.InitialDirContext |
getDefaultIntialDirContext(int pageSize)
Use the environment properties and connect to the LDAP server, optionally configuring RFC 2696 paged results. |
javax.naming.directory.InitialDirContext |
getInitialDirContext(java.lang.String principal,
java.lang.String credentials)
Augment the connection environment with the identity and credentials and bind to the ldap server. |
java.util.Map |
getInitialDirContextEnvironment()
|
boolean |
hasNextPage(javax.naming.directory.DirContext ctx,
int pageSize)
Determines whether there is another page to fetch from the last search to be run in this context. |
static void |
main(java.lang.String[] args)
|
void |
setInitialDirContextEnvironment(java.util.Map initialDirContextEnvironment)
Set the LDAP environment Hashtable properties used ot initialise the LDAP connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LDAPInitialDirContextFactoryImpl()
Method Detail |
---|
public void setInitialDirContextEnvironment(java.util.Map initialDirContextEnvironment)
LDAPInitialDirContextFactory
setInitialDirContextEnvironment
in interface LDAPInitialDirContextFactory
public java.util.Map getInitialDirContextEnvironment()
public javax.naming.directory.InitialDirContext getDefaultIntialDirContext() throws AuthenticationException
LDAPInitialDirContextFactory
getDefaultIntialDirContext
in interface LDAPInitialDirContextFactory
AuthenticationException
public javax.naming.directory.InitialDirContext getDefaultIntialDirContext(int pageSize) throws AuthenticationException
LDAPInitialDirContextFactory
getDefaultIntialDirContext
in interface LDAPInitialDirContextFactory
pageSize
- if a positive value, indicates that a LDAP v3 RFC 2696 paged results control should be used. The
results of a search operation should be returned by the LDAP server in batches of the specified size.
AuthenticationException
- the authentication exceptionpublic boolean hasNextPage(javax.naming.directory.DirContext ctx, int pageSize)
LDAPInitialDirContextFactory
hasNextPage
in interface LDAPInitialDirContextFactory
ctx
- the contextpageSize
- if a positive value, indicates that a LDAP v3 RFC 2696 paged results control should be used. The
results of a search operation should be returned by the LDAP server in batches of the specified size.
public javax.naming.directory.InitialDirContext getInitialDirContext(java.lang.String principal, java.lang.String credentials) throws AuthenticationException
LDAPInitialDirContextFactory
getInitialDirContext
in interface LDAPInitialDirContextFactory
AuthenticationException
public static void main(java.lang.String[] args)
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |