Package javax.security.auth.login

Examples of javax.security.auth.login.FailedLoginException.initCause()


        }
        try {
            context = open();
        } catch (NamingException ne) {
            FailedLoginException ex = new FailedLoginException("Error opening LDAP connection");
            ex.initCause(ne);
            throw ex;
        }
       
        if (!isLoginPropertySet(USER_SEARCH_MATCHING))
          return false;
View Full Code Here


                } catch (URISyntaxException e) {
                    if (context != null) {
                        close(context);
                    }
                    FailedLoginException ex = new FailedLoginException("Error parsing absolute name as URI.");
                    ex.initCause(e);
                    throw ex;
                }
            }

            if (log.isDebugEnabled()) {
View Full Code Here

            } else {
                throw new FailedLoginException("Password does not match for user: " + username);
            }
        } catch (CommunicationException e) {
            FailedLoginException ex = new FailedLoginException("Error contacting LDAP");
            ex.initCause(e);
            throw ex;
        } catch (NamingException e) {
            if (context != null) {
                close(context);
            }
View Full Code Here

        } catch (NamingException e) {
            if (context != null) {
                close(context);
            }
            FailedLoginException ex = new FailedLoginException("Error contacting LDAP");
            ex.initCause(e);
            throw ex;
        }

        return true;
    }
View Full Code Here

/* 211 */         Throwable ex = getValidateError();
/* 212 */         FailedLoginException fle = new FailedLoginException("Password Incorrect/Password Required");
/* 213 */         if (ex != null)
/*     */         {
/* 215 */           this.log.debug("Bad password for username=" + username, ex);
/* 216 */           fle.initCause(ex);
/*     */         }
/*     */         else
/*     */         {
/* 220 */           this.log.debug("Bad password for username=" + username);
/*     */         }
View Full Code Here

            Throwable ex = getValidateError();
            FailedLoginException fle = new FailedLoginException("Password Incorrect/Password Required");
            if( ex != null && this.throwValidateError == true)
            {
               log.debug("Bad password for username="+username, ex);
               fle.initCause(ex);
            }
            else
            {
               log.debug("Bad password for username="+username);
            }
View Full Code Here

            Throwable ex = getValidateError();
            FailedLoginException fle = new FailedLoginException("Password Incorrect/Password Required");
            if( ex != null )
            {
               log.debug("Bad password for username="+username, ex);
               fle.initCause(ex);
            }
            else
            {
               log.debug("Bad password for username="+username);
            }
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.