1. /*
  2. * @(#)FailedLoginException.java 1.15 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.security.auth.login;
  8. /**
  9. * Signals that user authentication failed.
  10. *
  11. * <p> This exception is thrown by LoginModules if authentication failed.
  12. * For example, a <code>LoginModule</code> throws this exception if
  13. * the user entered an incorrect password.
  14. *
  15. * @version 1.15, 12/19/03
  16. */
  17. public class FailedLoginException extends LoginException {
  18. private static final long serialVersionUID = 802556922354616286L;
  19. /**
  20. * Constructs a FailedLoginException with no detail message. A detail
  21. * message is a String that describes this particular exception.
  22. */
  23. public FailedLoginException() {
  24. super();
  25. }
  26. /**
  27. * Constructs a FailedLoginException with the specified detail
  28. * message. A detail message is a String that describes this particular
  29. * exception.
  30. *
  31. * <p>
  32. *
  33. * @param msg the detail message.
  34. */
  35. public FailedLoginException(String msg) {
  36. super(msg);
  37. }
  38. }