Examples of authenticate()


Examples of org.apache.sshd.server.PublickeyAuthenticator.authenticate()

        PublickeyAuthenticator authenticator = session.getServerFactoryManager().getPublickeyAuthenticator();
        if (authenticator == null) {
            throw new Exception("No PublickeyAuthenticator configured");
        }

        if (!authenticator.authenticate(username, key, session)) {
            return false;
        }
        if (!hasSig) {
            Buffer buf = session.createBuffer(SshConstants.Message.SSH_MSG_USERAUTH_PK_OK, 0);
            buf.putString(alg);
View Full Code Here

Examples of org.apache.wicket.authroles.authentication.AuthenticatedWebSession.authenticate()

        @Override
        public void onSubmit() {
            String userId = Login.this.getUserId();
            String password = Login.this.getPassword();
            AuthenticatedWebSession session = (AuthenticatedSession) getSession();
            if (session.authenticate(userId, password)) {
                AuthenticatedSession session2 = ((AuthenticatedSession) Session.get());
                if (session2.getCheckAdmin()) {
                    setResponsePage(ShowAllBook.class);
                } else {
                    setResponsePage(ShowAllBookReader.class);
View Full Code Here

Examples of org.atomojo.auth.service.db.User.authenticate()

               String seconds = requestForm.getFirstValue("expiration");
               long requestExpiration = seconds==null ? expiration : Long.parseLong(seconds)*1000;
               if ("false".equals(requestForm.getFirstValue("session"))) {
                  requestExpiration = 0;
               }
               User.Authenticated authd = user.authenticate(realm,password,requestExpiration);
               if (authd!=null) {
                  String userAlias = authd.getUser().getAlias();
                  UUID userId = authd.getUser().getUUID();
                  String name = authd.getUser().getName();
                  String email = authd.getUser().getEmail();
View Full Code Here

Examples of org.cafesip.jiplet.Realm.authenticate()

                try
                {
                    // set the context class loader to that of the realm.
                    Thread.currentThread().setContextClassLoader(
                            realm.getClass().getClassLoader());
                    uroles = realm.authenticate(req.getMethod(), header);
                }
                finally
                {
                    Thread.currentThread().setContextClassLoader(cl);
                }
View Full Code Here

Examples of org.dmrad.view.security.AppSession.authenticate()

     */
    protected void onSubmit() {
      AppSession appSession = (AppSession) getSession();
      if (appSession.isMemberLoggedIn()) {
        setResponsePage(app.getHomePage());
      } else if (appSession.authenticate(member.getCode(), member
          .getPassword())) {
        if (!continueToOriginalDestination()) {
          setResponsePage(app.getHomePage());
        }
      } else {
View Full Code Here

Examples of org.drools.resource.ResourceHandler.authenticate()

    public void testAuthentication() {
        ResourceHandler rHandler = new SvnResourceHandler();
        rHandler.setCredentials( "mrtrout",
                                 "drools" );
       
        boolean authRtnPass = rHandler.authenticate( svnUrl ) ;//"file:///D:/dev/trunk2/rule-resource-handler/target/test-classes/svn_repo" );
        boolean authRtnFail = rHandler.authenticate( svnUrl + "2" );//"file:///D:/dev/trunk2/rule-resource-handler/target/test-classes/svn_repo2" );

        System.out.println(svnUrl);
       
        assertEquals( true,
View Full Code Here

Examples of org.drools.resource.SvnResourceHandler.authenticate()

    public void testAuthentication() {
        ResourceHandler rHandler = new SvnResourceHandler();
        rHandler.setCredentials( "mrtrout",
                                 "drools" );
       
        boolean authRtnPass = rHandler.authenticate( svnUrl ) ;//"file:///D:/dev/trunk2/rule-resource-handler/target/test-classes/svn_repo" );
        boolean authRtnFail = rHandler.authenticate( svnUrl + "2" );//"file:///D:/dev/trunk2/rule-resource-handler/target/test-classes/svn_repo2" );

        System.out.println(svnUrl);
       
        assertEquals( true,
View Full Code Here

Examples of org.eclipse.jetty.client.api.Authentication.authenticate()

                    LOG.debug("No authentication available for {}", request);
                forwardSuccessComplete(request, response);
                return;
            }

            final Authentication.Result authnResult = authentication.authenticate(request, response, headerInfo, conversation);
            if (LOG.isDebugEnabled())
                LOG.debug("Authentication result {}", authnResult);
            if (authnResult == null)
            {
                forwardSuccessComplete(request, response);
View Full Code Here

Examples of org.exist.security.SecurityManager.authenticate()

    }

    // authenticate the credentials
    final SecurityManager secman = pool.getSecurityManager();
    try {
      user = secman.authenticate(username, password);
    } catch (final AuthenticationException e) {
      // if authentication failed then send a challenge request again
      if (sendChallenge) {sendChallenge(request, response);}
      return null;
    }
View Full Code Here

Examples of org.exoplatform.services.organization.UserHandler.authenticate()

   public void testChangePassword() throws Exception
   {
      UserHandler uHandler = organizationService.getUserHandler();
      User user = uHandler.findUserByName("root");
      assertNotNull(user);
      assertTrue(uHandler.authenticate("root", "gtn"));
     
      // Test changing password
      user.setPassword("newPassword");
      uHandler.saveUser(user, false);
      user = uHandler.findUserByName("root");
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.