|
Esri Geoportal Server 1.2.9
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.gpt.framework.security.identity.ldap.LdapClient
public class LdapClient
A client for connection to an LDAP identity store.
Constructor Summary | |
---|---|
protected |
LdapClient()
Default constructor. |
protected |
LdapClient(LdapConfiguration configuration)
Construct with a supplied configuration. |
protected |
LdapClient(LdapConfiguration configuration,
Credentials credentials)
Construct with a supplied configuration and credentials. |
Method Summary | |
---|---|
protected void |
authenticate(RequestContext requestContext,
User user)
Authenticates a user. |
void |
close()
Closes the connected directory context (if open). |
protected String |
connect()
Establishes an LDAP connection. |
protected void |
finalize()
Finalize on garbage collection. |
LdapConfiguration |
getConfiguration()
Gets the LDAP configuration. |
protected DirContext |
getConnectedContext()
Gets the connected directory context. |
Credentials |
getCredentials()
Gets the credentials for the connection. |
protected LdapEditFunctions |
getEditFunctions()
Gets the edit functions. |
protected LdapQueryFunctions |
getQueryFunctions()
Gets the query functions. |
protected void |
populateUser(RequestContext requestContext,
User user,
String targetedGroupDN)
Populates the authentication status and profile information for a user based upon the user's DN. |
protected String |
searchForUser(UsernamePasswordCredentials credentials)
Searches for a user by first executing a search for all users matching the supplied username credential, then checking the supplied password credential against each matching DN. |
void |
setConfiguration(LdapConfiguration configuration)
Sets the LDAP configuration. |
protected void |
setConnectedContext(DirContext connectedContext)
Sets the connected directory context. |
void |
setCredentials(Credentials credentials)
Sets the credentials for the connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LdapClient()
protected LdapClient(LdapConfiguration configuration)
configuration
- the configurationprotected LdapClient(LdapConfiguration configuration, Credentials credentials)
configuration
- the configurationcredentials
- the connection credentialsMethod Detail |
---|
public LdapConfiguration getConfiguration()
public void setConfiguration(LdapConfiguration configuration)
configuration
- the configurationprotected final DirContext getConnectedContext() throws NamingException
NamingException
- if a connection has not been establishedprotected final void setConnectedContext(DirContext connectedContext)
connectedContext
- the connected directory contextpublic Credentials getCredentials()
public void setCredentials(Credentials credentials)
credentials
- the credentialsprotected LdapEditFunctions getEditFunctions()
protected LdapQueryFunctions getQueryFunctions()
protected void authenticate(RequestContext requestContext, User user) throws CredentialsDeniedException, IdentityException, SQLException
requestContext
- the context associated with the requestuser
- the subject user
CredentialsDeniedException
- if credentials are denied
IdentityException
- if a system error occurs preventing authentication
SQLException
- if a database communication exception occurspublic final void close()
protected String connect() throws AuthenticationException, NamingException
AuthenticationException
- if an authentication exception occurs
NamingException
- if a naming exception occursprotected void finalize() throws Throwable
finalize
in class Object
Throwable
- if an exception occursprotected void populateUser(RequestContext requestContext, User user, String targetedGroupDN) throws IdentityException, NamingException, SQLException
requestContext
- the context associated with the requestuser
- the subject user
IdentityException
- if a system error occurs preventing authentication
NamingException
- if an LDAP naming exception occurs
SQLException
- if a database communication exception occursprotected String searchForUser(UsernamePasswordCredentials credentials) throws AuthenticationException, NamingException
credentials
- the credentials to authenticate
AuthenticationException
- if the authentication of credentials failed
NamingException
- if an LDAP naming exception occurs
|
Esri Geoportal Server 1.2.9
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |