Interface UserManager
public interface UserManager
Implementations of this interface supply the function of User Manager to an Ebase
system.
-
Method Summary
Modifier and Type Method Description boolean
authenticate(java.lang.String userId, java.lang.String password)
Answers whether the userid/password combination is validvoid
changePassword(java.lang.String userId, java.lang.String newPassword)
Change a password to the specified new valuevoid
completeSubject(javax.security.auth.Subject subject, java.lang.String userId)
Returns a Subject object containing a number of Principal objects as follows:
- UserPrincipal representing the userid
- RolePrincipal for each role associated with the uservoid
initialise(com.ebasetech.ufs.kernel.IUFSServletContextProxy proxy)
Called at system start up to initialise any required resourcesvoid
logout(java.lang.String userId)
Called to indicate that the user is no longer connected to the system and any resources can therefore be released.boolean
supportsChangePassword()
Answers the question whether the implementation supports changing of passwords
-
Method Details
-
authenticate
boolean authenticate(java.lang.String userId, java.lang.String password) throws com.ebasetech.ufs.security.authentication.AuthenticationExceptionAnswers whether the userid/password combination is valid- Throws:
com.ebasetech.ufs.security.authentication.AuthenticationException
- if an error occurs calling the backend user registry system
-
completeSubject
void completeSubject(javax.security.auth.Subject subject, java.lang.String userId) throws com.ebasetech.ufs.security.authentication.AuthenticationExceptionReturns a Subject object containing a number of Principal objects as follows:
- UserPrincipal representing the userid
- RolePrincipal for each role associated with the user- Throws:
com.ebasetech.ufs.security.authentication.AuthenticationException
- if an error occurs calling the backend user registry system
-
logout
void logout(java.lang.String userId)Called to indicate that the user is no longer connected to the system and any resources can therefore be released. -
initialise
void initialise(com.ebasetech.ufs.kernel.IUFSServletContextProxy proxy)Called at system start up to initialise any required resources -
supportsChangePassword
boolean supportsChangePassword()Answers the question whether the implementation supports changing of passwords -
changePassword
void changePassword(java.lang.String userId, java.lang.String newPassword) throws com.ebasetech.ufs.security.authentication.AuthenticationExceptionChange a password to the specified new value- Throws:
com.ebasetech.ufs.security.authentication.AuthenticationException
- if an error occurs calling the backend user registry system
-