Examples of authenticate()


Examples of org.wso2.carbon.bam.core.clients.AuthenticationAdminClient_3_1_0.authenticate()

        try {
            AuthenticationAdminClient_3_1_0 authenticationAdminClient_3_1_0 =
                    new AuthenticationAdminClient_3_1_0(server.getServerURL());

            isLoggedIn = authenticationAdminClient_3_1_0.authenticate(server.getUserName(), server.getPassword());

            if (isLoggedIn) {
                String sessionCookie = authenticationAdminClient_3_1_0.getSessionCookie();
                getSessionCache().addSessionString(server.getServerURL(), sessionCookie);
            }
View Full Code Here

Examples of org.wso2.carbon.bam.core.clients.AuthenticationAdminClient_3_2_0.authenticate()

            try {
                new Socket(url.getHost(), port); //this is just to check if the server is up
                boolean authenticated;
                try {
                    AuthenticationAdminClient_3_2_0 authenticationAdminClient = new AuthenticationAdminClient_3_2_0(monitoredServer.getServerURL());
                    authenticated = authenticationAdminClient.authenticate(monitoredServer.getUserName(), monitoredServer.getPassword());
                } catch (Exception e) {
                    if (e.getMessage().indexOf("404") > 0) {
                        return BAMConstants.SERVER_AUTH_FAILED_404;
                    } else {
                        //this is for backward compatibility with the old stubs
View Full Code Here

Examples of org.wso2.carbon.event.client.AuthenticationClient.authenticate()

            String authAdminUrl = "https://" + url.getHost() + ":" + url.getPort()  /* "https://localhost:9443" */
                    + urlContext + "/services/AuthenticationAdmin";                 /* "/wsas/services/AuthenticationAdmin" */

            AuthenticationClient authenticationClient = new AuthenticationClient(configurationContext, authAdminUrl);

            if (authenticationClient.authenticate(userName, password)) {
                this.cookie = authenticationClient.getSessionCookie();
            } else {
                throw new AuthenticationExceptionException("authentication Fault");
            }
        } catch (RemoteException e) {
View Full Code Here

Examples of org.wso2.carbon.identity.provider.xmpp.MPAuthenticationProvider.authenticate()

        // attempts to do multi-factor authentication, if the user has enabled it.
        if (xmppSettingsDO != null && xmppSettingsDO.isXmppEnabled() && isAutheticated) {
            MPAuthenticationProvider mpAuthenticationProvider = new MPAuthenticationProvider(
                    xmppSettingsDO);
            authenticationStatus = mpAuthenticationProvider.authenticate();
            if (log.isDebugEnabled()) {
                log.debug("XMPP Multifactor Authentication was completed Successfully.");
            }
        }
View Full Code Here

Examples of org.wso2.carbon.user.core.UserStoreManager.authenticate()

     */
    public static boolean doLogin(String username, String password) {
        try {
            UserStoreManager userStore = IdentityTenantUtil.getRealm(null, username)
                    .getUserStoreManager();
            return userStore.authenticate(username, password);
        } catch (Exception e) {
            log.error("Error while authenticating user", e);
            return false;
        }

View Full Code Here

Examples of pivot.web.BasicAuthentication.authenticate()

        // GET
        final GetQuery getQuery = new GetQuery(HOSTNAME, PORT, PATH, SECURE);
        getQuery.getArguments().put("a", "b");
        getQuery.setSerializer(new BinarySerializer());
        authentication.authenticate(getQuery);

        getQuery.execute(new TaskListener<Object>() {
            @SuppressWarnings("unchecked")
            public void taskExecuted(Task<Object> task) {
                Dictionary<String, Object> result = (Dictionary<String, Object>)task.getResult();
View Full Code Here

Examples of ru.runa.af.service.impl.interfaces.AuthenticationService.authenticate()

        environment.put(Context.URL_PKG_PREFIXES, getResources().getUrlPkgPrefixes());
        environment.put(Context.PROVIDER_URL, getResources().getProviderUrl());
        remoteContext = new InitialContext(environment);
        AuthenticationService service = getService(AuthenticationServiceHome.JNDI_NAME, AuthenticationServiceHome.class);
        if (SyncResources.LOGIN_MODE_LOGIN_PASSWORD.equals(getResources().getLoginMode())) {
            subject = service.authenticate(getResources().getLogin(), getResources().getPassword());
        } else {
            GSSManager manager = GSSManager.getInstance();
            GSSCredential clientCred = manager.createCredential(GSSCredential.INITIATE_ONLY);
            GSSName peerName = manager.createName("WFServer", null);
            GSSContext context = manager.createContext(peerName, (Oid) null, clientCred, GSSContext.DEFAULT_LIFETIME);
View Full Code Here

Examples of se.lu.esss.ics.rbac.access.ISecurityFacade.authenticate()

        try {
            final ISecurityFacade securityFacade = SecurityFacadeHandler.getSecurityFacade();
            LOGGER.log(Level.FINE, "Security Facade instance used: " + securityFacade);
           
            securityFacade.setDefaultSecurityCallback(this);
            rbacToken = securityFacade.authenticate();
            securityFacade.setDefaultSecurityCallback(null);
           
            if ( rbacToken == null) {
                throw new LoginException(RBACLoginModule.class.getName() + " Login failed, invalid credentials !");
            }
View Full Code Here

Examples of services.auth.AuthServicePortType.authenticate()

       
        AuthServicePortType auth = service.getAuthServiceHttpPort();

        try
        {
            auth.authenticate("bleh", "bar");
            fail("Must throw fault.");
        }
        catch (services.auth.AuthenticationException f)
        {
        }
View Full Code Here

Examples of tifauv.jplop.core.auth.Authenticator.authenticate()

      }

      // OK, now we are sure we got all the required fields
      m_logger.info("Logon request for user [" + username + "].");
      Authenticator authn = new Authenticator(username, password);
      if (authn.authenticate()) {
        p_request.getSession().removeAttribute(CommonConstants.NICK_SESSION_ATTR);
        p_request.getSession().setAttribute(CommonConstants.USER_SESSION_ATTR, authn.getUser());
        getServletContext().getRequestDispatcher(SUCCESS_PAGE).forward(p_request, p_response);
      }
      else {
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.