org.itracker.services.authentication.adsson
Class WindowsSSONAuthenticator

java.lang.Object
  extended by org.itracker.services.authentication.AbstractPluggableAuthenticator
      extended by org.itracker.services.authentication.DefaultAuthenticator
          extended by org.itracker.services.authentication.adsson.WindowsSSONAuthenticator
All Implemented Interfaces:
PluggableAuthenticator, AuthenticationConstants
Direct Known Subclasses:
WindowsSSONAuthenticatorADInfo

public abstract class WindowsSSONAuthenticator
extends DefaultAuthenticator

Single Sign On class with Windows Gets an authentication from jcifs web filter, gets user information from active directory, creates or updates the user with that information if needed

Author:
Ricardo Trindade (ricardo.trindade@emation.pt)

Field Summary
 
Fields inherited from interface org.itracker.services.util.AuthenticationConstants
AUTH_TYPE_CERTIFICATE, AUTH_TYPE_PASSWORD_ENC, AUTH_TYPE_PASSWORD_PLAIN, AUTH_TYPE_REQUEST, AUTH_TYPE_SHARED_SECRET, AUTH_TYPE_UNKNOWN, REQ_SOURCE_API, REQ_SOURCE_UNKNOWN, REQ_SOURCE_WEB, UPDATE_TYPE_CORE, UPDATE_TYPE_PERMISSION_ADD, UPDATE_TYPE_PERMISSION_SET, UPDATE_TYPE_PREFERENCE
 
Constructor Summary
WindowsSSONAuthenticator()
           
 
Method Summary
 boolean allowPasswordUpdates(User user, Object authentication, int authType, int reqSource)
          The DefaultAuthenticator always allows password updates.
 boolean allowProfileUpdates(User user, Object authentication, int authType, int reqSource)
          The DefaultAuthenticator always allows profile updates.
 User checkLogin(String login, Object authentication, int authType, int reqSource)
          Checks the login of a user against the user profile provided in ITracker.
protected abstract  User getExternalUserInfo(String login)
           
 
Methods inherited from class org.itracker.services.authentication.DefaultAuthenticator
allowPermissionUpdates, allowPreferenceUpdates, allowProfileCreation, allowRegistration, createProfile, getUserPermissions, getUsersWithProjectPermission, updateProfile
 
Methods inherited from class org.itracker.services.authentication.AbstractPluggableAuthenticator
getConfigurationService, getUserService, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsSSONAuthenticator

public WindowsSSONAuthenticator()
Method Detail

checkLogin

public User checkLogin(String login,
                       Object authentication,
                       int authType,
                       int reqSource)
                throws AuthenticatorException
Description copied from class: DefaultAuthenticator
Checks the login of a user against the user profile provided in ITracker. This is the default authentication scheme provided by ITracker.

Specified by:
checkLogin in interface PluggableAuthenticator
Overrides:
checkLogin in class DefaultAuthenticator
Parameters:
login - the login the user/client provided
authentication - the user's authentication information, if known
authType - the type of authentication information being provided
reqSource - the source of the request (eg web, api)
Returns:
a User if the login is successful
Throws:
AuthenticatorException - an exception if the login is unsuccessful, or an error occurs
See Also:
org.itracker.ejb.authentication.AbstractPluggableAuthenticator#checkLogin(java.lang.String, java.lang.Object, int, int)

getExternalUserInfo

protected abstract User getExternalUserInfo(String login)
                                     throws AuthenticatorException
Throws:
AuthenticatorException

allowProfileUpdates

public boolean allowProfileUpdates(User user,
                                   Object authentication,
                                   int authType,
                                   int reqSource)
                            throws AuthenticatorException
Description copied from class: DefaultAuthenticator
The DefaultAuthenticator always allows profile updates.

Specified by:
allowProfileUpdates in interface PluggableAuthenticator
Overrides:
allowProfileUpdates in class DefaultAuthenticator
Parameters:
user - a User object that contains the data the user submitted
authentication - the user's authentication information, if known
authType - the type of authentication information being provided
reqSource - the source of the request (eg web, api)
Returns:
true
Throws:
AuthenticatorException - an exception if an error occurs
See Also:
PluggableAuthenticator.allowPasswordUpdates(org.itracker.model.User, java.lang.Object, int, int), PluggableAuthenticator.allowPermissionUpdates(org.itracker.model.User, java.lang.Object, int, int), PluggableAuthenticator.allowPreferenceUpdates(org.itracker.model.User, java.lang.Object, int, int)

allowPasswordUpdates

public boolean allowPasswordUpdates(User user,
                                    Object authentication,
                                    int authType,
                                    int reqSource)
                             throws AuthenticatorException
Description copied from class: DefaultAuthenticator
The DefaultAuthenticator always allows password updates.

Specified by:
allowPasswordUpdates in interface PluggableAuthenticator
Overrides:
allowPasswordUpdates in class DefaultAuthenticator
Parameters:
user - a User object that contains the data the user submitted
authentication - the user's authentication information, if known
authType - the type of authentication information being provided
reqSource - the source of the request (eg web, api)
Returns:
true
Throws:
AuthenticatorException - an exception if an error occurs
See Also:
PluggableAuthenticator.allowProfileUpdates(org.itracker.model.User, java.lang.Object, int, int), PluggableAuthenticator.allowPermissionUpdates(org.itracker.model.User, java.lang.Object, int, int), PluggableAuthenticator.allowPreferenceUpdates(org.itracker.model.User, java.lang.Object, int, int)


Copyright © 2002-2012 itracker. All Rights Reserved.