* @throws AuthenticationException
* @throws AuthorizationException
*/
public UserSession(Workspace workspace, String login, String pwd) throws UserNotFoundException, AuthenticationException, AuthorizationException
{
Authentication authenticator = null;
Authorization authorizator = null;
initialize();
this.workspace = workspace;
// Instancia el proveedor de autenticaci�n
authenticator = AuthenticationFactory.getInstance(workspace);
if (authenticator != null)
{
// Autenticaci�n
this.currentUser = authenticator.login(login, pwd);
try
{
// Instancia el proveedor de seguridad
authorizator = AuthorizationFactory.getInstance(workspace);