Examples of login()


Examples of org.apache.olio.webapp.security.SecurityHandler.login()

                String userName=request.getParameter(WebConstants.USER_NAME_PARAM);
                String password=request.getParameter(WebConstants.PASSWORD_PARAM);
                String accessingURL=request.getParameter("accessingURL");
                if(userName != null) {
                    // login action
                    Person person=securityHandler.login(getFilterConfig().getServletContext(), httpRequest, httpResponse, userName, password);
                    if(person != null) {
                        // login successful, return originally requested resource
                        // don't like showing login in url because can't bookmark so redirect to it
                        httpResponse.sendRedirect(httpRequest.getContextPath() + accessingURL);
                    } else {
View Full Code Here

Examples of org.apache.openejb.spi.SecurityService.login()

        if (user != null && pass != null){
            try {
                logger.info("Logging in");
                SecurityService securityService = SystemInstance.get().getComponent(SecurityService.class);
                if (realmName == null) {
                    clientIdentity = securityService.login(user, pass);
                } else {
                    clientIdentity = securityService.login(realmName, user, pass);
                }
                ClientSecurity.setIdentity(clientIdentity);
            } catch (LoginException e) {
View Full Code Here

Examples of org.apache.shiro.mgt.SecurityManager.login()

        SecurityManager securityManager = injector.getInstance(SecurityManager.class);
        assertNotNull(securityManager);
        SecurityUtils.setSecurityManager(securityManager);

        final Subject subject = new Subject.Builder(securityManager).buildSubject();
        securityManager.login(subject, authToken);

        verify(mockRealm);
    }

    @Test
View Full Code Here

Examples of org.apache.shiro.subject.Subject.login()

        }
        final Subject subject = new Subject.Builder().sessionId(id).buildSubject();
        ThreadContext.bind(subject);

        try {
            subject.login(new UsernamePasswordToken(createRequest.username, createRequest.password));
            final User user = userService.load(createRequest.username);
            if (user != null) {
                long timeoutInMillis = user.getSessionTimeoutMs();
                subject.getSession().setTimeout(timeoutInMillis);
            } else {
View Full Code Here

Examples of org.apache.sling.api.auth.Authenticator.login()

        if (authenticator != null) {
            try {

                // set the login resource to select the authenticator
                AuthUtil.setLoginResourceAttribute(request, null);
                authenticator.login(request, response);
                return;

            } catch (IllegalStateException ise) {

                log.error("doGet: Response already committed, cannot login");
View Full Code Here

Examples of org.apache.sling.engine.auth.Authenticator.login()

            SlingHttpServletResponse response) throws IOException {

        Authenticator authenticator = this.authenticator;
        if (authenticator != null) {
            try {
                authenticator.login(request, response);
                return;
            } catch (IllegalStateException ise) {
                log.error("doGet: Response already committed, cannot login");
                return;
            } catch (NoAuthenticationHandlerException nahe) {
View Full Code Here

Examples of org.apache.sling.jcr.api.SlingRepository.login()

        SetField.set(c, "logins", Arrays.asList(new String[] { login }));
       
        final SlingRepository repo = Mockito.mock(SlingRepository.class);
        SetField.set(c, "repository", repo);
        final Session s = Mockito.mock(Session.class);
        Mockito.when(repo.login(Matchers.any(Credentials.class))).thenAnswer(new Answer<Session>() {
            @Override
            public Session answer(InvocationOnMock invocation) {
                final SimpleCredentials c = (SimpleCredentials)invocation.getArguments()[0];
                if("admin".equals(c.getUserID())) {
                    return s;
View Full Code Here

Examples of org.apache.stonehenge.stocktrader.dal.CustomerDAO.login()

    factory = DAOFactory.getFacotry();
  }

  public CustomAccountBean login(String userId, String password) throws DAOException {
    CustomerDAO customerDAO = factory.getCustomerDAO();
    return customerDAO.login(userId, password);
  }

  public void logout(String userId) throws DAOException {
    CustomerDAO customerDAO = factory.getCustomerDAO();
    customerDAO.logoutUser(userId);
View Full Code Here

Examples of org.apache.tapestry.vlib.ejb.IOperations.login()

        {
            try
            {
                IOperations operations = vengine.getOperations();

                Person person = operations.login(getEmail(), password);

                loginUser(person);

                break;
View Full Code Here

Examples of org.apache.wicket.security.WaspSession.login()

        MyLoginContext userContext = new MyLoginContext(username, password);

        try
        {
          secureSession.login(userContext);
          setLoggedInUser(userContext);
        }
        catch (LoginException e)
        {
          log.error("Could not login " + username, e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.