|
Esri Geoportal Server 1.0
|
||||||||
| 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. |
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 configuration
protected LdapClient(LdapConfiguration configuration,
Credentials credentials)
configuration - the configurationcredentials - the connection credentials| Method Detail |
|---|
public LdapConfiguration getConfiguration()
public void setConfiguration(LdapConfiguration configuration)
configuration - the configuration
protected 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 occurs
protected void finalize()
throws Throwable
finalize in class ObjectThrowable - if an exception occurs
|
Esri Geoportal Server 1.0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||