| java.lang.Object com.uwyn.rife.authentication.AuthenticationUtils
AuthenticationUtils | abstract public class AuthenticationUtils (Code) | | This abstract class provides convenience shortcut methods to
perform common operations with the authentication framework
author: Geert Bevin (gbevin[remove] at uwyn dot com) version: $Revision: 3643 $ since: 1.4 |
Method Summary | |
public static String | startAuthenticationSession(Site site, String authElementId, ElementInfo reference, long userId, String hostIp, boolean remembered) Starts a new authentication session for a particular user and
com.uwyn.rife.authentication.elements.Authenticated Authenticated element in a site.
Parameters: site - the site in which the authenticated element is declared Parameters: authElementId - the absolute ID of the authenticated element thatprovides all the authentication related managers Parameters: reference - a reference element against which to resolve the id;or null if the provided id is absolute Parameters: userId - The id that uniquely identifies the user that is allowedto use this session. Parameters: hostIp - The ip address of the host from which the user accessesthe application. Parameters: remembered - Indicates whether the session is started throughremember me or from scratch. | public static String | startAuthenticationSession(ElementInfo authElementInfo, long userId, String hostIp, boolean remembered) Starts a new authentication session for a particular user and
com.uwyn.rife.authentication.elements.Authenticated Authenticated element in a site.
Parameters: authElementInfo - the ElementInfo of the authenticatedelement that provides all the authentication related managers Parameters: userId - The id that uniquely identifies the user that is allowedto use this session. Parameters: hostIp - The ip address of the host from which the user accessesthe application. Parameters: remembered - Indicates whether the session is started throughremember me or from scratch. |
startAuthenticationSession | public static String startAuthenticationSession(Site site, String authElementId, ElementInfo reference, long userId, String hostIp, boolean remembered) throws AuthenticatedElementNotFoundException, NotAuthenticatedElementException, SessionManagerException(Code) | | Starts a new authentication session for a particular user and
com.uwyn.rife.authentication.elements.Authenticated Authenticated element in a site.
Parameters: site - the site in which the authenticated element is declared Parameters: authElementId - the absolute ID of the authenticated element thatprovides all the authentication related managers Parameters: reference - a reference element against which to resolve the id;or null if the provided id is absolute Parameters: userId - The id that uniquely identifies the user that is allowedto use this session. Parameters: hostIp - The ip address of the host from which the user accessesthe application. Parameters: remembered - Indicates whether the session is started throughremember me or from scratch. A String that uniquely identifies theauthentication session that was just started. exception: AuthenticatedElementNotFoundException - when the element IDcouldn't be found in the site exception: NotAuthenticatedElementException - when the element ID doesn'trefer to an Authenticated element exception: SessionManagerException - when an error occurred while startinthe authentication session in a manager since: 1.4 |
|
|