public abstract class CustomUserManager extends UserManager
Constructor and Description |
---|
CustomUserManager(IdentityDirectory ids, java.lang.String entityName) |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticateUser(java.security.Principal principal, char[] password)
This method should be implemented by any custom UserManager implementations to authenticate a user for a given User principal and password.
|
boolean |
authenticateUser(java.security.Principal principal, char[] password, boolean checkPwdPolicyWarning)
This method should be implemented by any custom UserManager implementations to authenticate a user for a given User principal and password.
|
User |
authenticateUser(java.lang.String id, char[] password, ReadOptions opts)
This method should be implemented by any custom UserManagaer implementations to authenticate the user for a given id and password
|
User |
authenticateUser(java.lang.String id, char[] password, ReadOptions opts, boolean checkPwdPolicyWarning)
This method should be implemented by any custom UserManagaer implementations to authenticate a user for a given id and password.
|
User |
authenticateUser(java.lang.String attrName, java.lang.String attrVal, char[] password, ReadOptions opts)
This method should be implemented by any custom UserManagaer implementations to authenticate a user for a given unique attribute name , attribute value and password.
|
User |
authenticateUser(java.lang.String attrName, java.lang.String attrVal, char[] password, ReadOptions opts, boolean checkPwdPolicyWarning)
This method should be implemented by any custom UserManagaer implementations to authenticate a user for a given unique attribute name, attribute value and password.
|
void |
changePassword(java.security.Principal principal, char[] oldPassword, char[] newPassword, ModifyOptions opts)
This method should be implemented by any custom UserManager implementations to change user password given the old and the new password
|
void |
changePassword(java.lang.String id, char[] oldPassword, char[] newPassword, ModifyOptions opts)
This method should be implemented by any custom UserManager implementations to change user password given the old and the new password
|
void |
changePassword(java.lang.String attrName, java.lang.String attrVal, char[] oldPassword, char[] newPassword, ModifyOptions opts)
This method should be implemented by any custom UserManager implementations to change user password given the old and the new password
|
boolean |
compareEntityAttr(java.security.Principal principal, java.lang.String attrname, char[] attrvalue)
This method can be implemented compared the attribute value for a particular attribute name.The attribute value parameter is given in a character array, making this method suitable for comparing passwords and sensitive data.
|
boolean |
compareEntityAttr(java.security.Principal principal, java.lang.String attrname, java.lang.String attrvalue)
This method can be implemented to provide a functionality to compared the attribute value for a particular attribute name.
|
java.security.Principal |
createUser(java.util.List<Attribute> attrVals, CreateOptions opts)
This method should be implemented by any custom UserManager implementations to creates user in the repository with given list of attribute values.
|
void |
deleteUser(java.security.Principal principal, DeleteOptions opts)
This method should be implemented by any custom UserManager implementations to delete a user from the repository for a given user principal
|
void |
deleteUser(java.lang.String id, DeleteOptions opts)
This method should be implemented by any custom UserManager implementations to deletes the user from the repository for a given user id attribute value
|
void |
deleteUser(java.lang.String attrName, java.lang.String attrVal, DeleteOptions opts)
This method should be implemented by any custom UserManagaer implementations to deletes the user from the repository for given unique attribute name and value.
|
AttributeDef |
getAttributeDef(java.lang.String attrName)
Gets attribute definition for a given attribute name.
|
AttributeRef |
getAttributeRef(java.lang.String attrName)
Gets entity attribute reference for given attribute name.
|
UserCapabilities |
getCapabilities()
Get the capabilities for any user to run the following operations - Create, Read, Update , Delete.
|
java.util.List<java.lang.String> |
getEntityAttributes()
Get entity attributes from entity definition Return default attributes unless modified using the custom IdentityDirectory implementation.
|
EntityDef |
getEntityDef()
Get the entity definition.
|
java.util.List<EntityRelationship> |
getEntityRelationships()
Gets all entity relationships where current entity is part of the entity relationship definition
|
java.lang.String |
getGlobalCommonIdAttribute(java.lang.String entityName)
This method can be implemented to get the global common id attribute name configured in the entity definition, as required.
|
java.lang.String |
getIdAttribute()
This method can be implemented to get the id attribute corresponding to a given entityName.
|
User |
getUser(java.security.Principal principal, ReadOptions opts)
This method should be implemented by any custom UserManager implementations to get the user for the given principal identifier.
|
void |
modify(java.security.Principal principal, java.util.List<ModAttribute> attrVals, ModifyOptions opts)
This method can be implemented to provide a functionality to modify the attributes of a user, identified by the Principal cast object of the user.
|
void |
modify(java.lang.String id, java.util.List<ModAttribute> attrVals, ModifyOptions opts)
This method can be implemented to provide a functionality to modify the attributes of a user, identified by an id.
|
void |
modify(java.lang.String attrName, java.lang.String attrVal, java.util.List<ModAttribute> attrVals, ModifyOptions opts)
This method can be implemented to provide a functionality to modify the attributes of a user, identified by an attribute value matching an attribute name
|
void |
rename(java.security.Principal principal, java.lang.String newName, java.lang.String newContainer, ModifyOptions opts)
This method can be implemented to provide a functionality to rename a user, identified by the Principal cast object of the user.
|
void |
resetPassword(java.security.Principal principal, char[] password, ModifyOptions opts)
This method should be implemented by any custom UserManager implementations to reset the user password
|
void |
resetPassword(java.lang.String id, char[] password, ModifyOptions opts)
This method should be implemented by any custom UserManager implementations to reset the user password
|
void |
resetPassword(java.lang.String attrName, java.lang.String attrVal, char[] password, ModifyOptions opts)
This method should be implemented by any custom UserManager implementations to reset the user password
|
User |
searchUser(java.lang.String id, ReadOptions opts)
This method should be implemented by any custom UserManager implementations to search for a user matching given id attribute value that uniquely identifies the user.
|
User |
searchUser(java.lang.String attrName, java.lang.String attrVal, ReadOptions opts)
This method should be implemented by any custom UserManager implementations to find a user matching given attribute name and value
|
User |
searchUserByGuid(java.lang.String guid, ReadOptions opts)
This method should be implemented by any custom UserManager implementations to search for a user matching given GUID value that uniquely identifies the user
|
ResultSet<User> |
searchUsers(SearchFilter filter, SearchOptions opts)
This method should be implemented by any custom UserManager implementations to search the repository and returns list of users matching the given filter condition.
|
boolean |
validatePassword(java.security.Principal principal, char[] password)
This method should be implemented by any custom UserManager implementations to validates user password for a given principal without bind in the LDAP repository.
|
boolean |
validatePassword(java.security.Principal principal, char[] password, boolean checkPwdPolicyWarning)
This method should be implemented by any custom UserManager implementations to validate user password for the given principal without bind in the LDAP repository.
|
User |
validatePassword(java.lang.String id, char[] password, ReadOptions opts)
This method should be implemented by any custom UserManager implementations to validate user password for a given id without bind in LDAP repository.
|
User |
validatePassword(java.lang.String id, char[] password, ReadOptions opts, boolean checkPwdPolicyWarning)
This method should be implemented by any custom UserManager implementations to validate user password for a given id without bind in LDAP repository.
|
User |
validatePassword(java.lang.String attrName, java.lang.String attrVal, char[] password, ReadOptions opts)
This method should be implemented by any custom UserManager implementations to validates user password for a given attribute name and attribute value without bind in the LDAP repository.
|
User |
validatePassword(java.lang.String attrName, java.lang.String attrVal, char[] password, ReadOptions opts, boolean checkPwdPolicyWarning)
This method should be implemented by an custom UserManager implementations to validate user password for a given attribute name and attribute value without bind in the LDAP repository.
|
public CustomUserManager(IdentityDirectory ids, java.lang.String entityName)
public java.security.Principal createUser(java.util.List<Attribute> attrVals, CreateOptions opts) throws IDSException, EntityAlreadyExistsException, OperationNotSupportedException, AuthorizationException, InvalidAttributesException
createUser
in class UserManager
attrVals
- List of attribute valuesopts
- Create operation optionsIDSException
- Generic Identity Directory Service exceptionEntityAlreadyExistsException
- When the user to be created already existsOperationNotSupportedException
- If the user create operation is not supportedInvalidAttributesException
- When the add attributes list is invalidAuthorizationException
- If user does not have sufficient privilegespublic User getUser(java.security.Principal principal, ReadOptions opts) throws EntityNotFoundException, IDSException, AuthorizationException, InvalidAttributesException
getUser
in class UserManager
principal
- Principal identifier of the useropts
- Read operation optionsEntityNotFoundException
- When there is no user in the repository for given user principalIDSException
- Generic Identity Directory Service exceptionInvalidAttributesException
- If the requested attributes is invalidAuthorizationException
- If user does not have sufficient privilegespublic User searchUser(java.lang.String id, ReadOptions opts) throws IDSException, EntityNotFoundException, EntityNotUniqueException, AuthorizationException, InvalidAttributesException
searchUser
in class UserManager
id
- Value of the user's id attributeopts
- Read operation optionsIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When there is no user found for given ID valueEntityNotUniqueException
- When the given filter condition does not uniquely identify the userInvalidAttributesException
- If the requested attributes is invalidAuthorizationException
- If user does not have sufficient privilegespublic User searchUser(java.lang.String attrName, java.lang.String attrVal, ReadOptions opts) throws IDSException, EntityNotFoundException, EntityNotUniqueException, InvalidFilterException, AuthorizationException, InvalidAttributesException
searchUser
in class UserManager
attrName
- Name of the attributeattrVal
- Attribute valueopts
- Read operation optionsIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When no user found for given search filterEntityNotUniqueException
- When the given filter condition does not uniquely identify the userInvalidFilterException
- If the attribute is invalid filter attributeInvalidAttributesException
- If the requested attributes is invalidAuthorizationException
- If user does not have sufficient privilegespublic User searchUserByGuid(java.lang.String guid, ReadOptions opts) throws IDSException, EntityNotFoundException, EntityNotUniqueException, AuthorizationException, InvalidAttributesException
searchUserByGuid
in class UserManager
guid
- GUID value of useropts
- Read operation optionsIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When there is no user found for given GUID valueEntityNotUniqueException
- When the given GUID values does not uniquely identify the userInvalidAttributesException
- If the requested attributes is invalidAuthorizationException
- If user does not have sufficient privilegespublic ResultSet<User> searchUsers(SearchFilter filter, SearchOptions opts) throws IDSException, InvalidFilterException, OperationNotSupportedException, AuthorizationException, InvalidAttributesException
searchUsers
in class UserManager
filter
- Search filteropts
- Search operation optionsIDSException
- Generic Identity Directory Service exceptionInvalidFilterException
- When the input search filter is not validOperationNotSupportedException
- When this user search operation is not supportedInvalidAttributesException
- When the requested attributes or the attributes in the search filter are invalidAuthorizationException
- If user does not have sufficient privilegespublic void deleteUser(java.security.Principal principal, DeleteOptions opts) throws EntityNotFoundException, IDSException, AuthorizationException, OperationNotSupportedException
deleteUser
in class UserManager
principal
- User principalopts
- Delete operation optionsEntityNotFoundException
- When there is no user in the repository for given user principalIDSException
- Generic Identity Directory Service exceptionOperationNotSupportedException
- If the user delete operation is not supportedAuthorizationException
- If user does not have sufficient privilegespublic void deleteUser(java.lang.String id, DeleteOptions opts) throws EntityNotFoundException, IDSException, AuthorizationException, OperationNotSupportedException
deleteUser
in class UserManager
id
- User id valueopts
- Delete operation optionsEntityNotFoundException
- When there is no user in the repository for given user principalIDSException
- Generic Identity Directory Service exceptionOperationNotSupportedException
- If the user delete operation is not supportedAuthorizationException
- If user does not have sufficient privilegespublic void deleteUser(java.lang.String attrName, java.lang.String attrVal, DeleteOptions opts) throws EntityNotFoundException, IDSException, AuthorizationException, OperationNotSupportedException
deleteUser
in class UserManager
attrName
- Name of the attributeattrVal
- Attribute valueopts
- Delete operation optionsEntityNotFoundException
- When there is no user in the repository for given user principalIDSException
- Generic Identity Directory Service exceptionOperationNotSupportedException
- If the user delete operation is not supportedAuthorizationException
- If user does not have sufficient privilegespublic User authenticateUser(java.lang.String id, char[] password, ReadOptions opts) throws IDSException, EntityNotFoundException, EntityNotUniqueException, OperationNotSupportedException, AuthenticationException
authenticateUser
in class UserManager
id
- Id attribute value. ID attribute is defined in the entity configuration that uniquely identifies the user entitypassword
- User password to be verifiedopts
- Read operation optionsIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When no user found for given ID valueEntityNotUniqueException
- If the given ID value does not uniquely identify the userOperationNotSupportedException
- If the user authentication operation is not supportedAuthenticationException
- If user authentication failedpublic User authenticateUser(java.lang.String id, char[] password, ReadOptions opts, boolean checkPwdPolicyWarning) throws IDSException, EntityNotFoundException, EntityNotUniqueException, OperationNotSupportedException, AuthenticationWarningException, AuthenticationException
authenticateUser
in class UserManager
id
- Id attribute value. ID attribute is defined in the entity configuration that uniquely identifies the user entitypassword
- User password to be verifiedopts
- Read operation optionscheckPwdPolicyWarning
- If true and there are any password policy related warnings throws AuthenticationWarningExceptionIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When no user found for given ID valueEntityNotUniqueException
- If the given ID value does not uniquely identify the userOperationNotSupportedException
- If the user authentication operation is not supportedAuthenticationWarningException
- If there are any password policy related warnings like Password must change, Grace Login, Password expire, etcAuthenticationException
- If user authentication failedpublic User authenticateUser(java.lang.String attrName, java.lang.String attrVal, char[] password, ReadOptions opts) throws IDSException, EntityNotFoundException, EntityNotUniqueException, OperationNotSupportedException, AuthenticationException
authenticateUser
in class UserManager
attrName
- Name of the attribute that uniquely identifies the userattrVal
- Attribute valuepassword
- User password to be verifiedopts
- Read operation optionsIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When no user found for given ID valueEntityNotUniqueException
- If the given ID value does not uniquely identify the userOperationNotSupportedException
- If the user authentication operation is not supportedAuthenticationException
- If user authentication failedpublic User authenticateUser(java.lang.String attrName, java.lang.String attrVal, char[] password, ReadOptions opts, boolean checkPwdPolicyWarning) throws IDSException, EntityNotFoundException, EntityNotUniqueException, OperationNotSupportedException, AuthenticationWarningException, AuthenticationException
authenticateUser
in class UserManager
attrName
- Name of the attribute that uniquely identifies the userattrVal
- Attribute valuepassword
- User password to be verifiedopts
- Read operation optionscheckPwdPolicyWarning
- If true and there are any password policy related warnings throws AuthenticationWarningExceptionIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When no user found for given ID valueEntityNotUniqueException
- If the given ID value does not uniquely identify the userOperationNotSupportedException
- If the user authentication operation is not supportedAuthenticationWarningException
- If there are any password policy related warnings like Password must change, Grace Login, Password expire, etcAuthenticationException
- If user authentication failedpublic boolean authenticateUser(java.security.Principal principal, char[] password) throws IDSException, EntityNotFoundException, OperationNotSupportedException, AuthenticationException
authenticateUser
in class UserManager
principal
- Principal identifier of the userpassword
- User passwordIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When no user found for given ID valueOperationNotSupportedException
- If the user authenticate operation is not supportedAuthenticationException
- If user authentication failedpublic boolean authenticateUser(java.security.Principal principal, char[] password, boolean checkPwdPolicyWarning) throws IDSException, EntityNotFoundException, OperationNotSupportedException, AuthenticationWarningException, AuthenticationException
authenticateUser
in class UserManager
principal
- Principal identifier of the userpassword
- User passwordcheckPwdPolicyWarning
- If true and there are any password policy related warnings throws AuthenticationWarningExceptionIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When no user found for given ID valueOperationNotSupportedException
- If the user authenticate operation is not supportedAuthenticationWarningException
- If there are any password policy related warnings like Password must change, Grace Login, Password expire, etcAuthenticationException
- If user authentication failedpublic User validatePassword(java.lang.String id, char[] password, ReadOptions opts) throws IDSException, EntityNotFoundException, EntityNotUniqueException, OperationNotSupportedException, AuthenticationException
validatePassword
in class UserManager
id
- Id attribute value. ID attribute is defined in the entity configuration that uniquely identifies the user entitypassword
- User password to be validatedopts
- Read operation optionsIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When no user found for given ID valueEntityNotUniqueException
- If the given ID value does not uniquely identify the userOperationNotSupportedException
- If the user authentication operation is not supportedAuthenticationException
- If user authentication failedpublic User validatePassword(java.lang.String id, char[] password, ReadOptions opts, boolean checkPwdPolicyWarning) throws IDSException, EntityNotFoundException, EntityNotUniqueException, OperationNotSupportedException, AuthenticationWarningException, AuthenticationException
validatePassword
in class UserManager
id
- Id attribute value. ID attribute is defined in the entity configuration that uniquely identifies the user entitypassword
- User password to be validatedopts
- Read operation optionscheckPwdPolicyWarning
- If true and there are any password policy related warnings throws AuthenticationWarningExceptionIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When no user found for given ID valueEntityNotUniqueException
- If the given ID value does not uniquely identify the userOperationNotSupportedException
- If the user authentication operation is not supportedAuthenticationWarningException
- If there are any password policy related warnings like Password must change, Grace Login, Password expire, etcAuthenticationException
- If user authentication failedpublic User validatePassword(java.lang.String attrName, java.lang.String attrVal, char[] password, ReadOptions opts) throws IDSException, EntityNotFoundException, EntityNotUniqueException, OperationNotSupportedException, AuthenticationException
validatePassword
in class UserManager
attrName
- Name of the attribute that uniquely identifies the userattrVal
- Attribute valuepassword
- User password to be validatedopts
- Read operation optionsIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When no user found for given ID valueEntityNotUniqueException
- If the given ID value does not uniquely identify the userOperationNotSupportedException
- If the user authentication operation is not supportedAuthenticationException
- If user authentication failedpublic User validatePassword(java.lang.String attrName, java.lang.String attrVal, char[] password, ReadOptions opts, boolean checkPwdPolicyWarning) throws IDSException, EntityNotFoundException, EntityNotUniqueException, OperationNotSupportedException, AuthenticationWarningException, AuthenticationException
validatePassword
in class UserManager
attrName
- Name of the attribute that uniquely identifies the userattrVal
- Attribute valuepassword
- User password to be validatedopts
- Read operation optionscheckPwdPolicyWarning
- If true and there are any password policy related warnings throws AuthenticationWarningExceptionIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When no user found for given ID valueEntityNotUniqueException
- If the given ID value does not uniquely identify the userOperationNotSupportedException
- If the user authentication operation is not supportedAuthenticationWarningException
- If there are any password policy related warnings like Password must change, Grace Login, Password expire, etcAuthenticationException
- If user authentication failedpublic boolean validatePassword(java.security.Principal principal, char[] password) throws IDSException, EntityNotFoundException, OperationNotSupportedException, AuthenticationException
validatePassword
in class UserManager
principal
- Principal identifier of the userpassword
- User passwordIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When no user found for given ID valueOperationNotSupportedException
- If the user authenticate operation is not supportedAuthenticationException
- If user authentication failedpublic boolean validatePassword(java.security.Principal principal, char[] password, boolean checkPwdPolicyWarning) throws IDSException, EntityNotFoundException, OperationNotSupportedException, AuthenticationWarningException, AuthenticationException
validatePassword
in class UserManager
principal
- Principal identifier of the userpassword
- User passwordcheckPwdPolicyWarning
- If true and there are any password policy related warnings throws AuthenticationWarningExceptionIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When no user found for given ID valueOperationNotSupportedException
- If the user authenticate operation is not supportedAuthenticationWarningException
- If there are any password policy related warnings like Password must change, Grace Login, Password expire, etcAuthenticationException
- If user authentication failedpublic void changePassword(java.security.Principal principal, char[] oldPassword, char[] newPassword, ModifyOptions opts) throws AuthenticationException, OperationNotSupportedException, EntityNotFoundException, AuthorizationException, PasswordPolicyException, IDSException
changePassword
in class UserManager
principal
- Principal identifier of the useroldPassword
- Old password of the usernewPassword
- New password of the useropts
- Modify optionsIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When this user is not foundOperationNotSupportedException
- If the user authenticate operation is not supportedAuthenticationException
- If user authentication failedPasswordPolicyException
- If there are any password policy errorsAuthorizationException
- If user does not have sufficient privilegespublic void changePassword(java.lang.String id, char[] oldPassword, char[] newPassword, ModifyOptions opts) throws AuthenticationException, OperationNotSupportedException, EntityNotFoundException, AuthorizationException, PasswordPolicyException, IDSException
changePassword
in class UserManager
id
- Id attribute value. ID attribute is defined in the entity configuration that uniquely identifies the user entityoldPassword
- Old password of the usernewPassword
- New password of the useropts
- Modify optionsIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When this user is not foundOperationNotSupportedException
- If the user authenticate operation is not supportedAuthenticationException
- If user authentication failedPasswordPolicyException
- If there are any password policy errorsAuthorizationException
- If user does not have sufficient privilegespublic void changePassword(java.lang.String attrName, java.lang.String attrVal, char[] oldPassword, char[] newPassword, ModifyOptions opts) throws AuthenticationException, OperationNotSupportedException, EntityNotFoundException, AuthorizationException, PasswordPolicyException, IDSException
changePassword
in class UserManager
attrName
- Name of the attribute that uniquely identifies the userattrVal
- Attribute valueoldPassword
- Old password of the usernewPassword
- New password of the useropts
- Modify optionsIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When this user is not foundOperationNotSupportedException
- If the user authenticate operation is not supportedAuthenticationException
- If user authentication failedPasswordPolicyException
- If there are any password policy errorsAuthorizationException
- If user does not have sufficient privilegespublic void resetPassword(java.security.Principal principal, char[] password, ModifyOptions opts) throws OperationNotSupportedException, EntityNotFoundException, AuthorizationException, PasswordPolicyException, IDSException
resetPassword
in class UserManager
principal
- Principal identifier of the userpassword
- User's new passwordopts
- Modify optionsIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When this user is not foundOperationNotSupportedException
- If the user authenticate operation is not supportedPasswordPolicyException
- If there are any password policy errorsAuthorizationException
- If user does not have sufficient privilegespublic void resetPassword(java.lang.String id, char[] password, ModifyOptions opts) throws OperationNotSupportedException, EntityNotFoundException, AuthorizationException, PasswordPolicyException, IDSException
resetPassword
in class UserManager
id
- Id attribute value. ID attribute is defined in the entity configuration that uniquely identifies the user entitypassword
- User's new passwordopts
- Modify optionsIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When this user is not foundOperationNotSupportedException
- If the user authenticate operation is not supportedPasswordPolicyException
- If there are any password policy errorsAuthorizationException
- If user does not have sufficient privilegespublic void resetPassword(java.lang.String attrName, java.lang.String attrVal, char[] password, ModifyOptions opts) throws OperationNotSupportedException, EntityNotFoundException, AuthorizationException, PasswordPolicyException, IDSException
resetPassword
in class UserManager
attrName
- Name of the attribute that uniquely identifies the userattrVal
- Attribute valuepassword
- User's new passwordopts
- Modify optionsIDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When this user is not foundOperationNotSupportedException
- If the user authenticate operation is not supportedPasswordPolicyException
- If there are any password policy errorsAuthorizationException
- If user does not have sufficient privilegespublic UserCapabilities getCapabilities()
getCapabilities
in class UserManager
public EntityDef getEntityDef()
getEntityDef
in class AbstractEntityManager
public java.util.List<java.lang.String> getEntityAttributes()
getEntityAttributes
in class AbstractEntityManager
public AttributeDef getAttributeDef(java.lang.String attrName)
getAttributeDef
in class AbstractEntityManager
Name
- of the attributepublic AttributeRef getAttributeRef(java.lang.String attrName)
getAttributeRef
in class AbstractEntityManager
attrName
- Name of the attributepublic java.util.List<EntityRelationship> getEntityRelationships()
getEntityRelationships
in class AbstractEntityManager
public java.lang.String getIdAttribute()
getIdAttribute
in class AbstractEntityManager
public java.lang.String getGlobalCommonIdAttribute(java.lang.String entityName)
getGlobalCommonIdAttribute
in class AbstractEntityManager
public boolean compareEntityAttr(java.security.Principal principal, java.lang.String attrname, java.lang.String attrvalue) throws IDSException, EntityNotFoundException, OperationNotSupportedException
compareEntityAttr
in class AbstractEntityManager
principal
- Is a Principal object cast of the user on which the compare operation is run.attrname
- Is the name of the attribute to compare.attrvalue
- Is the value of the attribute to be compared.IDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When no user found for given ID valueOperationNotSupportedException
- If the user authenticate operation is not supportedpublic boolean compareEntityAttr(java.security.Principal principal, java.lang.String attrname, char[] attrvalue) throws IDSException, EntityNotFoundException, OperationNotSupportedException
compareEntityAttr
in class AbstractEntityManager
principal
- Is a Principal object cast of the user on which the compare operation is run.attrname
- Is the name of the attribute to compare.attrvalue
- Is the value of the attribute to be compared.IDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When no user found for given ID valueOperationNotSupportedException
- If the user authenticate operation is not supportedpublic void modify(java.lang.String id, java.util.List<ModAttribute> attrVals, ModifyOptions opts) throws IDSException, EntityNotFoundException, OperationNotSupportedException, AuthorizationException, InvalidAttributesException
modify
in class AbstractEntityManager
id
- Is the id of the user for which the attributes have to be modified.attrVals
- Is a list of ModAttribute objects specifying the values of the attributes to be modified.opts
- Is a ModifyOptions object that can be used to specify the options related to this modify command.IDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When the entity to be modified is not foundOperationNotSupportedException
- When this entity modify operation is not supportedInvalidAttributesException
- When the mod attributes are invalidAuthorizationException
- If user does not have sufficient privilegespublic void modify(java.security.Principal principal, java.util.List<ModAttribute> attrVals, ModifyOptions opts) throws IDSException, EntityNotFoundException, OperationNotSupportedException, AuthorizationException, InvalidAttributesException
modify
in class AbstractEntityManager
principal
- Is the Principal cast object of the user for which the attributes have to be modified.attrVals
- Is a list of ModAttribute objects specifying the values of the attributes to be modified.opts
- Is a ModifyOptions object that can be used to specify the options related to this modify command,IDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When the entity to be modified is not foundOperationNotSupportedException
- When this entity modify operation is not supportedInvalidAttributesException
- When the mod attributes are invalidAuthorizationException
- If user does not have sufficient privilegespublic void modify(java.lang.String attrName, java.lang.String attrVal, java.util.List<ModAttribute> attrVals, ModifyOptions opts) throws IDSException, EntityNotFoundException, OperationNotSupportedException, AuthorizationException, InvalidAttributesException
modify
in class AbstractEntityManager
attrName
- Is the name of the attribute used for matching.attrVal
- Is the value used for matching the attribute given as attrName.attrVals
- Is a list of ModAttribute objects specifying the values of the attributes to be modified.opts
- Is a ModifyOptions object that can be used to specify the options related to this modify command.IDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When the entity to be modified is not foundOperationNotSupportedException
- When this entity modify operation is not supportedInvalidAttributesException
- When the mod attributes are invalidAuthorizationException
- If user does not have sufficient privilegespublic void rename(java.security.Principal principal, java.lang.String newName, java.lang.String newContainer, ModifyOptions opts) throws IDSException, EntityNotFoundException, OperationNotSupportedException, AuthorizationException, InvalidAttributesException
rename
in class AbstractEntityManager
principal
- Is the Principal cast object of the user to rename.newName
- Is the new name of the user, to be set.newContainer
- Is the new Container of the user, to be set.opts
- Is a ModifyOptions object that can be used to specify the options related to this modify command.IDSException
- Generic Identity Directory Service exceptionEntityNotFoundException
- When the entity to be modified is not foundOperationNotSupportedException
- When this entity modify operation is not supportedInvalidAttributesException
- When the mod attributes are invalidAuthorizationException
- If user does not have sufficient privileges