Examples of authenticate()


Examples of mx4j.tools.remote.PasswordAuthenticator.authenticate()

   {
      PasswordAuthenticator authenticator = new PasswordAuthenticator(preparePasswords(new String[0]));
      Object credentials = null;
      try
      {
         authenticator.authenticate(credentials);
         fail();
      }
      catch (SecurityException x)
      {
      }
View Full Code Here

Examples of net.fqsc.inscriptions.controller.identification.SignInSession.authenticate()

  @Override
  public final void onSubmit()
  {
    final SignInSession session = (SignInSession) this.getSession();

    if (session.authenticate(this.getUsername(), this.getPassword()))
    {
      // If login has been called because the user was not yet
      // logged in, than continue to the original destination,
      // otherwise to the Home page
View Full Code Here

Examples of net.jradius.client.RadiusClient.authenticate()

        final AccessRequest request = new AccessRequest(radiusClient,
            attributeList);

        try {
            final RadiusPacket response = radiusClient.authenticate(request,
                this.radiusAuthenticator, this.retries);

            // accepted
            if (response instanceof AccessAccept) {
                LOG.debug("Authentication request suceeded for host:"
View Full Code Here

Examples of net.sf.collabreview.core.users.Author.authenticate()

      if (auth == null) {
        logger.debug("login data missing");
        throw new IllegalArgumentException("login data missing");
      }
      author = CollabReviewSingleton.get().getAuthorManager().getAuthor(auth.getUserName());
      author.authenticate(auth.getPassword());
    } else {
      // wait a moment to reduce risk of brute force attacks
      try {
        Thread.sleep(500);
      } catch (InterruptedException e) {
View Full Code Here

Examples of net.sf.jpam.Pam.authenticate()

        for (int i = 0; i < callbacks.length; i++) {
            // When the server side need to authenticate the user
            WSPasswordCallback pwcb = (WSPasswordCallback) callbacks[i];
            if (pwcb.getUsage() == WSPasswordCallback.USERNAME_TOKEN_UNKNOWN) {
                Pam pam = new Pam();
                PamReturnValue ret = pam.authenticate(pwcb.getIdentifer(), pwcb
                        .getPassword());
                if (ret.equals(PamReturnValue.PAM_SUCCESS)) {
                    return;
                } else {
                    throw new IOException("check failed");
View Full Code Here

Examples of net.vinant.idp4java.base.BaseAuthenticationHandler.authenticate()

      BaseAuthenticationHandler authenticationHandler = ((SimpleServiceProxy)getServiceProxy()).getAuthenticationHandler();
      Object u = request.getParameter("username");
      Object p = request.getParameter("password");
      String username = u!=null?(String)u:null;
      String password = p!=null?(String)p:null;
      IUser authorizedUser = authenticationHandler.authenticate(username, password);
      if(authorizedUser == null){
        //response.sendRedirect("login.jsp");
        request.getRequestDispatcher("/login").forward(request, response);
        return null;
      }else{
View Full Code Here

Examples of netscape.ldap.LDAPConnection.authenticate()

      if ( hr.get("verify") != null ) {
              ld = new LDAPConnection();
              /* Connect to server */
               ld.connect( host, LDAPv2.DEFAULT_PORT );
              /* Authenticate to the server */
              ld.authenticate( 3, dn, password );
        return;
      }
            ld.connect(host, LDAPv2.DEFAULT_PORT, auth, password);
     

View Full Code Here

Examples of org.acegisecurity.AuthenticationManager.authenticate()

        AuthenticationManager m = delegate; // fix the reference we are working with

        if(m ==null)
            throw new DisabledException("Authentication service is still not ready yet");
        else
            return m.authenticate(authentication);
    }

    public void setDelegate(AuthenticationManager manager) {
        this.delegate = manager;
    }
View Full Code Here

Examples of org.acegisecurity.providers.ldap.authenticator.BindAuthenticator.authenticate()

          authoritiesPopulator.setGroupRoleAttribute(groupRoleAttribute);
           
            System.out.println("***********************************");
          LdapAuthenticationProvider ldapAuthenticationProvider =
            new LdapAuthenticationProvider(authenticator, authoritiesPopulator);
          LdapUserInfo user = authenticator.authenticate(userDetails.getUsername(),
              (String)authentication.getCredentials());
          if (user != null) {
              UserDetails u = ldapAuthenticationProvider.retrieveUser(userDetails.getUsername(),
                  authentication);         
              System.out.println("user " + u);
View Full Code Here

Examples of org.apache.ace.authentication.api.AuthenticationProcessor.authenticate()

            public Boolean answer(InvocationOnMock invocation) throws Throwable {
                Object[] args = invocation.getArguments();
                return (args.length == 1 && args[0] instanceof Date);
            }
        });
        when(authProc1.authenticate(Mockito.<UserAdmin>any(), eq(now))).thenReturn(user1);

        AuthenticationProcessor authProc2 = mock(AuthenticationProcessor.class);
        when(authProc2.canHandle(anyString())).thenAnswer(new Answer<Boolean>() {
            public Boolean answer(InvocationOnMock invocation) throws Throwable {
                Object[] args = invocation.getArguments();
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.