|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.framework.security.identity.ldap.LdapFunctions com.esri.gpt.framework.security.identity.ldap.LdapEditFunctions
public class LdapEditFunctions
Handles functionality related to editing an LDAP identity store.
Constructor Summary | |
---|---|
protected |
LdapEditFunctions()
Default constructor. |
protected |
LdapEditFunctions(LdapConfiguration configuration)
Construct with a supplied configuration. |
Method Summary | |
---|---|
protected void |
addAttribute(DirContext dirContext,
String objectDN,
Attributes attributes)
Adds and attribute(s) to an LDAP object. |
protected void |
addEntry(DirContext dirContext,
String objectDN,
Attributes attributes)
Adds an entry to LDAP. |
protected void |
addUserToRole(DirContext dirContext,
User user,
String role)
Adds user to role. |
protected User |
recoverUserPassword(DirContext dirContext,
String username,
String emailAddress)
Recovers a password. |
protected void |
registerUser(DirContext dirContext,
User user)
Register a new user. |
protected void |
removeEntry(DirContext dirContext,
String objectDN,
Attributes attributes)
Removes an attribute(s) from an LDAP object. |
protected void |
updateUserPassword(DirContext dirContext,
User user,
UsernamePasswordCredentials newCredentials)
Updates the password for a user. |
protected void |
updateUserProfile(DirContext dirContext,
User user,
boolean considerUsername,
boolean considerPassword)
Updates the profile attributes for a user. |
Methods inherited from class com.esri.gpt.framework.security.identity.ldap.LdapFunctions |
---|
buildFullDN, closeEnumeration, getConfiguration, setConfiguration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LdapEditFunctions()
protected LdapEditFunctions(LdapConfiguration configuration)
configuration
- the configurationMethod Detail |
---|
protected void addAttribute(DirContext dirContext, String objectDN, Attributes attributes) throws NamingException
dirContext
- the directory contextobjectDN
- the distinguished name for the object to modifyattributes
- the attribute collection to add
NamingException
- if an exception occursprotected void addEntry(DirContext dirContext, String objectDN, Attributes attributes) throws NamingException
dirContext
- the directory contextobjectDN
- the distinguished name for the new entryattributes
- the attributes for the new entry
NamingException
- if an exception occursprotected User recoverUserPassword(DirContext dirContext, String username, String emailAddress) throws NamingException
dirContext
- the directory contextusername
- the usernameemailAddress
- the email address
NamingException
- if an LDAP naming exception occursprotected void registerUser(DirContext dirContext, User user) throws CredentialPolicyException, NamingException, NameAlreadyBoundException
dirContext
- the directory contextuser
- the subject user
CredentialPolicyException
- if the username or password is empty
NamingException
- if an LDAP naming exception occurs
NameAlreadyBoundException
- if the new user DN already existsprotected void addUserToRole(DirContext dirContext, User user, String role) throws CredentialPolicyException, NamingException
dirContext
- the directory contextuser
- the subject userrole
-
CredentialPolicyException
- if the username or password is empty
NamingException
- if an LDAP naming exception occurs
NameAlreadyBoundException
- if the new user DN already existsprotected void removeEntry(DirContext dirContext, String objectDN, Attributes attributes) throws NamingException
dirContext
- the directory contextobjectDN
- the distinguished name for the object to modifyattributes
- the attribute collection to remove
NamingException
- if an exception occursprotected void updateUserProfile(DirContext dirContext, User user, boolean considerUsername, boolean considerPassword) throws NamingException
dirContext
- the directory contextuser
- the subject userconsiderUsername
- true if the username should be considered for updateconsiderPassword
- true if the password should be considered for update
NamingException
- if an LDAP naming exception occursprotected void updateUserPassword(DirContext dirContext, User user, UsernamePasswordCredentials newCredentials) throws NamingException
dirContext
- the directory contextuser
- the subject usernewCredentials
- the credentials containing the new password
NamingException
- if an LDAP naming exception occurs
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |