|
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.IdentityAdapter
public class IdentityAdapter
Super class for an identity adapter.
An identity adapter provides the basic interface to an underlying identity store.
Currently, an adapter based upon local identity tables (LocalIdentityAdapter) and an adapter based upon remote LDAP identities (LdapIdentityAdapter) are supported.
Constructor Summary | |
---|---|
IdentityAdapter()
Default constructor. |
Method Summary | |
---|---|
void |
addAttribute(String objectDn,
String attributeName,
String attributeValue)
Adds user attribute. |
void |
addUserToGroup(User user,
String groupDn)
Adds user to group. |
void |
addUserToRole(User user,
String role)
Adds user to role. |
void |
authenticate(User user)
Authenticates credentials. |
void |
changePassword(User user,
ChangePasswordCriteria criteria)
Changes the password for a user. |
void |
deleteUser(User user)
Delete user from ldap |
ApplicationConfiguration |
getApplicationConfiguration()
Gets the application configuration. |
RequestContext |
getRequestContext()
Gets the associated request context. |
Users |
readGroupMembers(String groupKey)
Reads the members of a group. |
Groups |
readGroups(String filter)
Builds list of ldap groups matching filter. |
void |
readUserGroups(User user)
Reads the groups to which a user belongs. |
void |
readUserProfile(User user)
Reads the profile attributes for a user. |
Users |
readUsers(String filter,
String attributeName)
Builds list of ldap users matching filter. |
User |
recoverPassword(RecoverPasswordCriteria criteria)
Recovers a user password. |
void |
registerUser(User user)
Registers a new user. |
void |
removeAttribute(String objectDn,
String attributeName,
String attributeValue)
Adds user attribute. |
void |
removeUserFromGroup(User user,
String groupDn)
Removes user from group. |
void |
setApplicationConfiguration(ApplicationConfiguration appConfig)
Sets the application configuration. |
void |
setRequestContext(RequestContext requestContext)
Sets the associated request context. |
void |
throwNotSupportedException(String method)
Throws an exception. |
void |
updateUserProfile(User user)
Updates the profile attributes for a user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IdentityAdapter()
Method Detail |
---|
public ApplicationConfiguration getApplicationConfiguration()
public void setApplicationConfiguration(ApplicationConfiguration appConfig)
appConfig
- the application configurationpublic RequestContext getRequestContext()
public void setRequestContext(RequestContext requestContext)
requestContext
- the request contextpublic void authenticate(User user) throws CredentialsDeniedException, IdentityException, SQLException
user
- the subject user
CredentialsDeniedException
- if credentials are denied
IdentityException
- if a system error occurs preventing authentication
SQLException
- if a database communication exception occurspublic void changePassword(User user, ChangePasswordCriteria criteria) throws CredentialsDeniedException, CredentialPolicyException, IdentityException, NamingException, SQLException
user
- the subject usercriteria
- the criteria associated with the password change
CredentialPolicyException
- if the credentials are invalid
IdentityException
- if a system error occurs preventing the action
NamingException
- if an LDAP naming exception occurs
SQLException
- if a database communication exception occurs
CredentialsDeniedException
public void deleteUser(User user) throws CredentialPolicyException, IdentityException, NamingException, SQLException
user
- the user to be deleted from ldap.
CredentialPolicyException
- if the credentials are invalid
IdentityException
- if a system error occurs preventing the action
NamingException
- if an LDAP naming exception occurs
SQLException
- if a database communication exception occurspublic Users readGroupMembers(String groupKey) throws IdentityException, NamingException, SQLException
groupKey
- the key for the group
IdentityException
- if a system error occurs preventing the action
NamingException
- if an LDAP naming exception occurs
SQLException
- if a database communication exception occurspublic void readUserGroups(User user) throws IdentityException, NamingException, SQLException
user
- the subject user
IdentityException
- if a system error occurs preventing the action
NamingException
- if an LDAP naming exception occurs
SQLException
- if a database communication exception occurspublic void readUserProfile(User user) throws IdentityException, NamingException, SQLException
user
- the subject user
IdentityException
- if a system error occurs preventing the action
NamingException
- if an LDAP naming exception occurs
SQLException
- if a database communication exception occurspublic User recoverPassword(RecoverPasswordCriteria criteria) throws IdentityException, NamingException, SQLException
criteria
- the criteria associated with the password recovery
IdentityException
- if a system error occurs preventing the action
NamingException
- if an LDAP naming exception occurs
SQLException
- if a database communication exception occurspublic void registerUser(User user) throws CredentialPolicyException, IdentityException, NamingException, SQLException
user
- the subject user
CredentialPolicyException
- if the credentials are invalid
IdentityException
- if a system error occurs preventing the action
NamingException
- if an LDAP naming exception occurs
SQLException
- if a database communication exception occurspublic void addAttribute(String objectDn, String attributeName, String attributeValue) throws CredentialPolicyException, IdentityException, NamingException, SQLException
objectDn
- the subject dnattributeName
- the user attribute will be added.attributeValue
- the user attribute value will be added.
CredentialPolicyException
- if the credentials are invalid
IdentityException
- if a system error occurs preventing the action
NamingException
- if an LDAP naming exception occurs
SQLException
- if a database communication exception occurspublic void removeAttribute(String objectDn, String attributeName, String attributeValue) throws CredentialPolicyException, IdentityException, NamingException, SQLException
objectDn
- the subject dnattributeName
- the user attribute will be removed.attributeValue
- the user attribute value will be removed
CredentialPolicyException
- if the credentials are invalid
IdentityException
- if a system error occurs preventing the action
NamingException
- if an LDAP naming exception occurs
SQLException
- if a database communication exception occurspublic void addUserToRole(User user, String role) throws CredentialPolicyException, IdentityException, NamingException, SQLException
user
- the subject userrole
- the role user will be added.
CredentialPolicyException
- if the credentials are invalid
IdentityException
- if a system error occurs preventing the action
NamingException
- if an LDAP naming exception occurs
SQLException
- if a database communication exception occurspublic void addUserToGroup(User user, String groupDn) throws CredentialPolicyException, IdentityException, NamingException, SQLException
user
- the subject usergroupDn
- the dn of group user will be added.
CredentialPolicyException
- if the credentials are invalid
IdentityException
- if a system error occurs preventing the action
NamingException
- if an LDAP naming exception occurs
SQLException
- if a database communication exception occurspublic void removeUserFromGroup(User user, String groupDn) throws CredentialPolicyException, IdentityException, NamingException, SQLException
user
- the subject usergroupDn
- the distinguishedName for the ldap group
CredentialPolicyException
- if the credentials are invalid
IdentityException
- if a system error occurs preventing the action
NamingException
- if an LDAP naming exception occurs
SQLException
- if a database communication exception occurspublic void throwNotSupportedException(String method) throws IdentityException
method
- the name of the method that is not supported
IdentityException
- the thrown exceptionpublic void updateUserProfile(User user) throws CredentialPolicyException, IdentityException, NamingException, SQLException
user
- the subject user
CredentialPolicyException
- if the credentials are invalid
IdentityException
- if a system error occurs preventing the action
NamingException
- if an LDAP naming exception occurs
SQLException
- if a database communication exception occurspublic Users readUsers(String filter, String attributeName) throws IdentityException, NamingException
filter
- the user search filter for ldap
IdentityException
- if a system error occurs preventing the action
NamingException
- if an LDAP naming exception occurspublic Groups readGroups(String filter) throws NamingException, IdentityException
filter
- the group search filter for ldap
NamingException
- if an LDAP naming exception occurs
IdentityException
|
Esri Geoportal Server 1.2.9
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |