Examples of AuthenticationException


Examples of org.apache.http.auth.AuthenticationException

        }
        String id = authScheme.getSchemeName();

        Header challenge = challenges.get(id.toLowerCase(Locale.ENGLISH));
        if (challenge == null) {
            throw new AuthenticationException(id +
                " authorization challenge expected, but not found");
        }
        authScheme.processChallenge(challenge);
        this.log.debug("Authorization challenge processed");
    }
View Full Code Here

Examples of org.apache.lucene.gdata.server.authentication.AuthenticationException

            String application = request.getParameter(AuthenticationController.APPLICATION_PARAMETER);
            LOG.info("Authentication request for service: "+serviceName+"; Application name: "+application);
        }
       
        if(!this.registry.isServiceRegistered(serviceName))
            throw new AuthenticationException("requested Service "+serviceName+"is not registered");
        String password = request.getParameter(AuthenticationController.PASSWORD_PARAMETER);
        String accountName = request.getParameter(AuthenticationController.ACCOUNT_PARAMETER);
        String clientIp = request.getRemoteHost();
       
      
       
        GDataAccount  account = getAccount(accountName);
        if(account == null || !account.getPassword().equals(password))
            throw new AuthenticationException("Account is null or password does not match");
       
        String token = this.controller.authenticatAccount(account,clientIp);
        sendToken(response,token);
        if(LOG.isInfoEnabled()){
           
View Full Code Here

Examples of org.apache.maven.wagon.authentication.AuthenticationException

    }

    public void testSessionConnectionRefusedEventAuthenticationException()
        throws Exception
    {
        final WagonException exception = new AuthenticationException( "" );

        try
        {
            runTestSessionConnectionRefusedEvent( exception );
            fail();
View Full Code Here

Examples of org.apache.shiro.authc.AuthenticationException

            throw new Graylog2ServerUnavailableException("Could not connect to Graylog2 Server.", e);
        } catch (APIException e) {
            if (e.getCause() != null && e.getCause() instanceof ConnectException) {
                throw new Graylog2ServerUnavailableException("Could not connect to Graylog2 Server.", e);
            } else {
                throw new AuthenticationException("Unable to communicate with graylog2-server backend", e);
            }
        } catch (PlayException e) {
            log.error("Misconfigured play application. Please make sure your application.secret is longer than 16 characters!", e);
            throw new RuntimeException(e);
        }
View Full Code Here

Examples of org.apache.shiro.authc.AuthenticationException

                throw new IncorrectCredentialsException("Authentication Failed. Password for account " + token.getPrincipal() + " was incorrect!", ice.getCause());
            } catch (LockedAccountException lae) {
                throw new LockedAccountException("Authentication Failed. The account for username " + token.getPrincipal() + " is locked."
                        + "Please contact your administrator to unlock it.", lae.getCause());
            } catch (AuthenticationException ae) {
                throw new AuthenticationException("Authentication Failed.", ae.getCause());
            }
        }
    }
View Full Code Here

Examples of org.beangle.security.core.AuthenticationException

  private static ThreadLocal<String> resource = new ThreadLocal<String>();

  private static UserToken getPrincipal() {
    Authentication auth = SecurityContextHolder.getContext().getAuthentication();
    if (null == auth) throw new AuthenticationException();
    UserToken user = (UserToken) auth.getPrincipal();
    if (null == user.getId()) throw new AuthenticationException();
    return user;
  }
View Full Code Here

Examples of org.beangle.security.monitor.AuthenticationException

  public Authentication authenticate(Authentication auth) throws AuthenticationException {
    logger.debug("Authentication using {}", getClass());
    SsoAuthentication ssoau = (SsoAuthentication) auth;
    String userName = doGetUserLoginName(ssoau.getRequest());
    if (StringUtils.isEmpty(userName)) {
      throw new AuthenticationException("sso user not found!");
    } else {
      auth.setPrincipal(userName);
      attachToUser(auth);
      return auth;
    }
View Full Code Here

Examples of org.brixcms.rmiserver.AuthenticationException

    }

    public User loginUser(String login, String password) throws AuthenticationException {
        User user = users.query(login, password);
        if (user == null) {
            throw new AuthenticationException();
        }
        userId = user.getId();
        return user;
    }
View Full Code Here

Examples of org.codehaus.plexus.redback.authentication.AuthenticationException

    public boolean isAuthenticated( HttpServletRequest request, AuthenticationResult result )
        throws AuthenticationException, AccountLockedException, MustChangePasswordException
    {
        if ( result != null && !result.isAuthenticated() )
        {
            throw new AuthenticationException( "User Credentials Invalid" );
        }

        return true;
    }
View Full Code Here

Examples of org.codehaus.plexus.security.authentication.AuthenticationException

            {
                return getUsernamePasswordAuthenticationToken( tokenMap );
            }
            else
            {
                throw new AuthenticationException( "Unsupported authentication token type " + tokenType );
            }
        }
        else
        {
            throw new AuthenticationException( "Unable to discover authentication token type" );
        }

    }
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.