Package org.jresearch.flexess.umi.api

Examples of org.jresearch.flexess.umi.api.AuthenticationException


  private IUmiUserManager getUserManager(final String applicationId) throws AuthenticationException {
    final String userManagementId = getUserManagerId();
    final IUmiUserManager userManager = userManagement.getUserManager(userManagementId);
    if (userManager == null) {
      throw new AuthenticationException(MessageFormat.format("User management is not found for application {0}", applicationId)); //$NON-NLS-1$
    }
    return userManager;
  }
View Full Code Here


      final ISettings umiSettings = app.getUmiSettings();
      if (umiSettings != null) {
        return umiSettings.getId();
      }
    }
    throw new AuthenticationException("No usermanager specified in any application model"); //$NON-NLS-1$
  }
View Full Code Here

    try {
      return getUserManager(applicationId).authenticate(authenticationData);
    } catch (final ConnectionException e) {
      final String message = MessageFormat.format("Can''t authenticate user in application {0}: {1}. See server logs for detailed information.", applicationId, e.getLocalizedMessage()); //$NON-NLS-1$
      logger.error(message, e);
      throw new AuthenticationException(message, e);
    }
  }
View Full Code Here

TOP

Related Classes of org.jresearch.flexess.umi.api.AuthenticationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.