public class LDAPInitialDirContextFactoryImpl extends Object implements LDAPInitialDirContextFactory, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
LDAPInitialDirContextFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
InitialDirContext |
getDefaultIntialDirContext()
Use the environment properties and connect to the LDAP server.
|
InitialDirContext |
getDefaultIntialDirContext(org.alfresco.repo.security.authentication.AuthenticationDiagnostic diagnostic)
Use the environment properties and connect to the LDAP server.
|
InitialDirContext |
getDefaultIntialDirContext(int pageSize)
Use the environment properties and connect to the LDAP server, optionally configuring RFC 2696 paged results.
|
InitialDirContext |
getDefaultIntialDirContext(int pageSize,
org.alfresco.repo.security.authentication.AuthenticationDiagnostic diagnostic)
Use the environment properties and connect to the LDAP server, optionally configuring RFC 2696 paged results.
|
InitialDirContext |
getInitialDirContext(String principal,
String credentials)
Augment the connection environment with the identity and credentials and bind to the ldap server.
|
InitialDirContext |
getInitialDirContext(String principal,
String credentials,
org.alfresco.repo.security.authentication.AuthenticationDiagnostic diagnostic)
Augment the connection environment with the identity and credentials and bind to the ldap server.
|
Map<String,String> |
getInitialDirContextEnvironment() |
String |
getTrustStorePassPhrase() |
String |
getTrustStorePath() |
String |
getTrustStoreType() |
boolean |
hasNextPage(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(String[] args) |
void |
setDefaultIntialDirContextEnvironment(Map<String,String> defaultEnvironment) |
void |
setInitialDirContextEnvironment(Map<String,String> initialDirContextEnvironment)
Set the LDAP environment Hashtable properties used ot initialise the LDAP connection.
|
void |
setPoolSystemProperties(Map<String,String> poolSystemProperties) |
void |
setTrustStorePassPhrase(String trustStorePassPhrase) |
void |
setTrustStorePath(String trustStorePath) |
void |
setTrustStoreType(String trustStoreType) |
public String getTrustStorePath()
public void setTrustStorePath(String trustStorePath)
public String getTrustStoreType()
public void setTrustStoreType(String trustStoreType)
public String getTrustStorePassPhrase()
public void setTrustStorePassPhrase(String trustStorePassPhrase)
public void setInitialDirContextEnvironment(Map<String,String> initialDirContextEnvironment)
LDAPInitialDirContextFactorysetInitialDirContextEnvironment in interface LDAPInitialDirContextFactorypublic void setDefaultIntialDirContextEnvironment(Map<String,String> defaultEnvironment)
public InitialDirContext getDefaultIntialDirContext() throws org.alfresco.repo.security.authentication.AuthenticationException
LDAPInitialDirContextFactorygetDefaultIntialDirContext in interface LDAPInitialDirContextFactoryorg.alfresco.repo.security.authentication.AuthenticationExceptionpublic void setPoolSystemProperties(Map<String,String> poolSystemProperties)
public InitialDirContext getDefaultIntialDirContext(int pageSize) throws org.alfresco.repo.security.authentication.AuthenticationException
LDAPInitialDirContextFactorygetDefaultIntialDirContext in interface LDAPInitialDirContextFactorypageSize - 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.org.alfresco.repo.security.authentication.AuthenticationException - the authentication exceptionpublic InitialDirContext getDefaultIntialDirContext(org.alfresco.repo.security.authentication.AuthenticationDiagnostic diagnostic) throws org.alfresco.repo.security.authentication.AuthenticationException
LDAPInitialDirContextFactorygetDefaultIntialDirContext in interface LDAPInitialDirContextFactoryorg.alfresco.repo.security.authentication.AuthenticationExceptionpublic InitialDirContext getDefaultIntialDirContext(int pageSize, org.alfresco.repo.security.authentication.AuthenticationDiagnostic diagnostic) throws org.alfresco.repo.security.authentication.AuthenticationException
LDAPInitialDirContextFactorygetDefaultIntialDirContext in interface LDAPInitialDirContextFactorypageSize - 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.diagnostic - AuthenticationDiagnosticorg.alfresco.repo.security.authentication.AuthenticationException - the authentication exceptionpublic boolean hasNextPage(DirContext ctx, int pageSize)
LDAPInitialDirContextFactoryhasNextPage in interface LDAPInitialDirContextFactoryctx - 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 InitialDirContext getInitialDirContext(String principal, String credentials) throws org.alfresco.repo.security.authentication.AuthenticationException
LDAPInitialDirContextFactorygetInitialDirContext in interface LDAPInitialDirContextFactoryprincipal - Stringcredentials - Stringorg.alfresco.repo.security.authentication.AuthenticationExceptionpublic InitialDirContext getInitialDirContext(String principal, String credentials, org.alfresco.repo.security.authentication.AuthenticationDiagnostic diagnostic) throws org.alfresco.repo.security.authentication.AuthenticationException
LDAPInitialDirContextFactorygetInitialDirContext in interface LDAPInitialDirContextFactoryprincipal - Stringcredentials - Stringdiagnostic - AuthenticationDiagnosticorg.alfresco.repo.security.authentication.AuthenticationExceptionpublic static void main(String[] args)
Copyright © 2005–2018 Alfresco Software. All rights reserved.