AbstractPluggableAuthenticator
, DefaultAuthenticator
, TestAuthenticator
, WindowsSSONAuthenticator
, WindowsSSONAuthenticatorADInfo
public interface PluggableAuthenticator
AuthenticationConstants
Modifier and Type | Method | Description |
---|---|---|
boolean |
allowPasswordUpdates(org.itracker.model.User user,
Object authentication,
int authType,
int reqSource) |
This method should be implemented to determine if the particular user is allowed to perform
password updates on the system.
|
boolean |
allowPermissionUpdates(org.itracker.model.User user,
Object authentication,
int authType,
int reqSource) |
This method should be implemented to determine if the particular user is allowed to perform
permissions updates on the system.
|
boolean |
allowPreferenceUpdates(org.itracker.model.User user,
Object authentication,
int authType,
int reqSource) |
This method should be implemented to determine if the particular user is allowed to perform
preferences updates on the system.
|
boolean |
allowProfileCreation(org.itracker.model.User user,
Object authentication,
int authType,
int reqSource) |
This method should be implemented to determine if a new user profile should be allowed
to be created.
|
boolean |
allowProfileUpdates(org.itracker.model.User user,
Object authentication,
int authType,
int reqSource) |
This method should be implemented to determine if the particular user is
allowed to perform profile updates on the system.
|
boolean |
allowRegistration(org.itracker.model.User user,
Object authentication,
int authType,
int reqSource) |
This method should be implemented to determine if a user is authorized to self register.
|
org.itracker.model.User |
checkLogin(String login,
Object authentication,
int authType,
int reqSource) |
This method should be implemented to determine if a user login is successful.
|
boolean |
createProfile(org.itracker.model.User user,
Object authentication,
int authType,
int reqSource) |
This method should be implemented to perform any updates that are necessary in the authentication
system to support a new user.
|
List<org.itracker.model.Permission> |
getUserPermissions(org.itracker.model.User user,
int reqSource) |
This method should return all the permissions a user has in the authentication system.
|
List<org.itracker.model.User> |
getUsersWithProjectPermission(Integer projectId,
int[] permissionTypes,
boolean requireAll,
boolean activeOnly,
int reqSource) |
Deprecated.
|
List<org.itracker.model.User> |
getUsersWithProjectPermission(Integer projectId,
org.itracker.model.PermissionType[] permissionTypes,
boolean requireAll,
boolean activeOnly,
int reqSource) |
This method should return an array of users that have certain permissions in the
authentication system.
|
void |
initialize(Map<?,?> value) |
This method should be implemented to setup any needed components.
|
boolean |
updateProfile(org.itracker.model.User user,
int updateType,
Object authentication,
int authType,
int reqSource) |
This method should be implemented to perform any updates that are necessary in the authentication
system to support the updated user information.
|
org.itracker.model.User checkLogin(String login, Object authentication, int authType, int reqSource) throws AuthenticatorException
login
- the login the user/client providedauthentication
- the user's authentication information, if knownauthType
- the type of authentication information being providedreqSource
- the source of the request (eg web, api)AuthenticatorException
- an exception if the login is unsuccessful, or an error occursList<org.itracker.model.Permission> getUserPermissions(org.itracker.model.User user, int reqSource) throws AuthenticatorException
user
- a User object that contains the user to retrieve permissions forreqSource
- the source of the request (eg web, api)AuthenticatorException
- an error occursList<org.itracker.model.User> getUsersWithProjectPermission(Integer projectId, org.itracker.model.PermissionType[] permissionTypes, boolean requireAll, boolean activeOnly, int reqSource) throws AuthenticatorException
projectId
- id of the project on which the users return have permissionspermissionTypes
- types of permissions requiredrequireAll
- true is the user must possess any of the permissions, false if only one is requiredactiveOnly
- true if only users listed as active should be returnedreqSource
- the source of the request (eg web, api)AuthenticatorException
- an error occurs@Deprecated List<org.itracker.model.User> getUsersWithProjectPermission(Integer projectId, int[] permissionTypes, boolean requireAll, boolean activeOnly, int reqSource) throws AuthenticatorException
projectId
- id of the project on which the users return have permissionspermissionTypes
- types of permissions requiredrequireAll
- true is the user must possess any of the permissions, false if only one is requiredactiveOnly
- true if only users listed as active should be returnedreqSource
- the source of the request (eg web, api)AuthenticatorException
- an error occursboolean allowRegistration(org.itracker.model.User user, Object authentication, int authType, int reqSource) throws AuthenticatorException
user
- a User object that contains the data the user submittedauthentication
- the user's authentication information, if knownauthType
- the type of authentication information being providedreqSource
- the source of the request (eg web, api)AuthenticatorException
- an exception if an error occursboolean allowProfileCreation(org.itracker.model.User user, Object authentication, int authType, int reqSource) throws AuthenticatorException
user
- a User object that contains the data for the new user. If null,
then the request is being made for an unknown future user. For example,
the system may request this with an null user if it needs to know if the system
should even present the option to create a new userauthentication
- the user's authentication information, if knownauthType
- the type of authentication information being providedreqSource
- the source of the request (eg web, api)AuthenticatorException
- an exception if an error occursboolean allowProfileUpdates(org.itracker.model.User user, Object authentication, int authType, int reqSource) throws AuthenticatorException
user
- a User object that contains the data the user submittedauthentication
- the user's authentication information, if knownauthType
- the type of authentication information being providedreqSource
- the source of the request (eg web, api)AuthenticatorException
- an exception if an error occursallowPasswordUpdates(org.itracker.model.User, java.lang.Object, int, int)
,
allowPermissionUpdates(org.itracker.model.User, java.lang.Object, int, int)
,
allowPreferenceUpdates(org.itracker.model.User, java.lang.Object, int, int)
boolean allowPasswordUpdates(org.itracker.model.User user, Object authentication, int authType, int reqSource) throws AuthenticatorException
user
- a User object that contains the current user dataauthentication
- the user's authentication information, if knownauthType
- the type of authentication information being providedreqSource
- the source of the request (eg web, api)AuthenticatorException
- an exception if an error occursallowProfileUpdates(org.itracker.model.User, java.lang.Object, int, int)
,
allowPermissionUpdates(org.itracker.model.User, java.lang.Object, int, int)
,
allowPreferenceUpdates(org.itracker.model.User, java.lang.Object, int, int)
boolean allowPermissionUpdates(org.itracker.model.User user, Object authentication, int authType, int reqSource) throws AuthenticatorException
user
- a User object that contains the current user data, or null if multiple usersauthentication
- the user's authentication information, if knownauthType
- the type of authentication information being providedreqSource
- the source of the request (eg web, api)AuthenticatorException
- an exception if an error occursallowProfileUpdates(org.itracker.model.User, java.lang.Object, int, int)
,
allowPasswordUpdates(org.itracker.model.User, java.lang.Object, int, int)
,
allowPreferenceUpdates(org.itracker.model.User, java.lang.Object, int, int)
boolean allowPreferenceUpdates(org.itracker.model.User user, Object authentication, int authType, int reqSource) throws AuthenticatorException
user
- a User object that contains the current user dataauthentication
- the user's authentication information, if knownauthType
- the type of authentication information being providedreqSource
- the source of the request (eg web, api)AuthenticatorException
- an exception if an error occursallowProfileUpdates(org.itracker.model.User, java.lang.Object, int, int)
,
allowPasswordUpdates(org.itracker.model.User, java.lang.Object, int, int)
,
allowPermissionUpdates(org.itracker.model.User, java.lang.Object, int, int)
boolean createProfile(org.itracker.model.User user, Object authentication, int authType, int reqSource) throws AuthenticatorException
user
- a User object that contains the newly created profileauthentication
- the user's authentication information, if knownauthType
- the type of authentication information being providedreqSource
- the source of the request (eg web, api)AuthenticatorException
- an error occursupdateProfile(org.itracker.model.User, int, java.lang.Object, int, int)
boolean updateProfile(org.itracker.model.User user, int updateType, Object authentication, int authType, int reqSource) throws AuthenticatorException
user
- a User object that contains the updated profileupdateType
- the type of information that is being updatedauthentication
- the user's authentication information, if knownauthType
- the type of authentication information being providedreqSource
- the source of the request (eg web, api)AuthenticatorException
- an exception if the login is unsuccessful, or an error occursvoid initialize(Map<?,?> value)
value
- A HashMap that contains some default information. The current calls
pass a UserService bean as userService, and an ConfigurationService
bean as configurationServiceCopyright © 2002–2019 itracker. All rights reserved.