public interface LDAPInitialDirContextFactory
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
hasNextPage(DirContext ctx,
int pageSize)
Determines whether there is another page to fetch from the last search to be run in this context.
|
void |
setInitialDirContextEnvironment(Map<String,String> environment)
Set the LDAP environment Hashtable properties used ot initialise the LDAP connection.
|
void setInitialDirContextEnvironment(Map<String,String> environment)
InitialDirContext getDefaultIntialDirContext(int pageSize, org.alfresco.repo.security.authentication.AuthenticationDiagnostic diagnostic) throws org.alfresco.repo.security.authentication.AuthenticationException
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.diagnostic
- AuthenticationDiagnosticorg.alfresco.repo.security.authentication.AuthenticationException
- the authentication exceptionInitialDirContext getDefaultIntialDirContext(int pageSize) throws org.alfresco.repo.security.authentication.AuthenticationException
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.org.alfresco.repo.security.authentication.AuthenticationException
- the authentication exceptionInitialDirContext getDefaultIntialDirContext() throws org.alfresco.repo.security.authentication.AuthenticationException
org.alfresco.repo.security.authentication.AuthenticationException
InitialDirContext getDefaultIntialDirContext(org.alfresco.repo.security.authentication.AuthenticationDiagnostic diagnostic) throws org.alfresco.repo.security.authentication.AuthenticationException
org.alfresco.repo.security.authentication.AuthenticationException
boolean hasNextPage(DirContext ctx, int pageSize)
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.InitialDirContext getInitialDirContext(String principal, String credentials) throws org.alfresco.repo.security.authentication.AuthenticationException
principal
- Stringcredentials
- Stringorg.alfresco.repo.security.authentication.AuthenticationException
InitialDirContext getInitialDirContext(String principal, String credentials, org.alfresco.repo.security.authentication.AuthenticationDiagnostic diagnostic) throws org.alfresco.repo.security.authentication.AuthenticationException
principal
- Stringcredentials
- Stringdiagnostic
- AuthenticationDiagnosticorg.alfresco.repo.security.authentication.AuthenticationException
Copyright © 2005–2017 Alfresco Software. All rights reserved.