Examples of AuthenticationException


Examples of org.codinjutsu.tools.jenkins.security.AuthenticationException

                    setConnectionFeedbackLabel(CONNECTION_TEST_SUCCESSFUL_COLOR, "Successful");
                    setPassword(password);
                } catch (Exception ex) {
                    setConnectionFeedbackLabel(CONNECTION_TEST_FAILED_COLOR, "[Fail] " + ex.getMessage());
                    if (ex instanceof AuthenticationException) {
                        AuthenticationException authenticationException = (AuthenticationException) ex;
                        String responseBody = authenticationException.getResponseBody();
                        if (StringUtils.isNotBlank(responseBody)) {
                            debugPanel.setVisible(true);
                            debugTextPane.setText(responseBody);
                        }
                    }
View Full Code Here

Examples of org.dbpedia.spotlight.exceptions.AuthenticationException

        return text.text().replaceAll("\\s+"," ").replaceAll("[\'\"]","");
    }
   
    public String annotate(Text text) throws AnnotationException {
        if (!authenticated) {
            throw new AuthenticationException("Client is not authenticated with Ontos. Please call authenticate(user, password) first.");
        }
        String url = "http://news.ontos.com/api/miner;jsessionid="+this.authToken+"?query="+
                URLEncoder.encode(
                "{" +
                "\"get\":\"process\"," +
View Full Code Here

Examples of org.exist.security.AuthenticationException

    @Override
    public Subject authenticate(final String accountName, Object credentials) throws AuthenticationException {
        final Account account = getAccount(accountName);
       
        if(account == null) {
            throw new AuthenticationException(AuthenticationException.ACCOUNT_NOT_FOUND, "Account '" + accountName + "' not found.");
        }
       
        if("SYSTEM".equals(accountName) || (!allowGuestAuthentication && "guest".equals(accountName))) {
            throw new AuthenticationException(AuthenticationException.ACCOUNT_NOT_FOUND, "Account '" + accountName + "' can not be used.");
        }

        if(!account.isEnabled()) {
            throw new AuthenticationException(AuthenticationException.ACCOUNT_LOCKED, "Account '" + accountName + "' is disabled.");
        }

        final Subject subject = new SubjectImpl((AccountImpl) account, credentials);
        if(!subject.isAuthenticated()) {
            throw new AuthenticationException(AuthenticationException.WRONG_PASSWORD, "Wrong password for user [" + accountName + "] ");
        }
           
        return subject;
    }
View Full Code Here

Examples of org.gatein.wci.authentication.AuthenticationException

      {
         request.login(credentials.getUsername(), credentials.getPassword());
      }
      catch (ServletException se)
      {
         throw new AuthenticationException(se);
      }
   }
View Full Code Here

Examples of org.gridsphere.services.core.security.auth.AuthenticationException

            cred = myproxyClient.get(null, params);
        } catch (MyProxyException e) {
            log.error(e.getMessage(), e);
        }
        if (cred == null) {
            throw new AuthenticationException("Couldn't retrieve your credential");
        }
        return cred;
    }
View Full Code Here

Examples of org.jasig.cas.authentication.handler.AuthenticationException

        TicketException t = new InvalidTicketException();
        assertEquals("INVALID_TICKET", t.getCode());
    }

    public void testCodeWithThrowable() {
        AuthenticationException a = new BadCredentialsAuthenticationException();
        TicketException t = new InvalidTicketException(a);

        assertEquals(a.toString(), t.getCode());
    }
View Full Code Here

Examples of org.jboss.errai.security.shared.exception.AuthenticationException

  public User login(String username, String password) {
    credentials.setUserId(username);
    credentials.setCredential(new Password(password));

    if (identity.login() != Identity.AuthenticationResult.SUCCESS) {
      throw new AuthenticationException();
    }

    final User user = createUser((org.picketlink.idm.model.basic.User) identity.getAccount(), getRoles());
    return user;
  }
View Full Code Here

Examples of org.jboss.seam.security.AuthenticationException

                   
                    for (Group g : session.getRelationshipManager().findAssociatedGroups(user)) {
                        identity.addGroup(g.getName(), g.getGroupType());
                    }
                } catch (FeatureNotSupportedException ex) {
                    throw new AuthenticationException("Error loading user's roles and groups", ex);
                } catch (IdentityException ex) {
                    throw new AuthenticationException("Error loading user's roles and groups", ex);
                }         
               
            }
        } catch (IdentityException ex) {
            throw new AuthenticationException("Error locating User record for OpenID user", ex);
        }    
    }
View Full Code Here

Examples of org.jdesktop.wonderland.common.login.AuthenticationException

        try {
            File f = new File(passwordFile);
            BufferedReader br = new BufferedReader(new FileReader(f));
            password = br.readLine();
        } catch (IOException ioe) {
            throw new AuthenticationException("Error reading password file " +
                                              passwordFile, ioe);
        }

        AuthenticationInfo info = new AuthenticationInfo(
                AuthenticationInfo.Type.WEB_SERVICE, authUrl);
View Full Code Here

Examples of org.jresearch.flexess.umi.api.AuthenticationException

  private IUmiUserManager getUserManager(final String applicationId) throws AuthenticationException {
    final String userManagementId = getUserManagerId();
    final IUmiUserManager userManager = userManagement.getUserManager(userManagementId);
    if (userManager == null) {
      throw new AuthenticationException(MessageFormat.format("User management is not found for application {0}", applicationId)); //$NON-NLS-1$
    }
    return userManager;
  }
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.