1. /*
  2. * @(#)CredentialExpiredException.java 1.14 03/01/23
  3. *
  4. * Copyright 2003 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 a <code>Credential</code> has expired.
  10. *
  11. * <p> This exception is thrown by LoginModules when they determine
  12. * that a <code>Credential</code> has expired.
  13. * For example, a <code>LoginModule</code> authenticating a user
  14. * in its <code>login</code> method may determine that the user's
  15. * password, although entered correctly, has expired. In this case
  16. * the <code>LoginModule</code> throws this exception to notify
  17. * the application. The application can then take the appropriate
  18. * steps to assist the user in updating the password.
  19. *
  20. * @version 1.14, 01/23/03
  21. */
  22. public class CredentialExpiredException extends LoginException {
  23. /**
  24. * Constructs a CredentialExpiredException with no detail message. A detail
  25. * message is a String that describes this particular exception.
  26. */
  27. public CredentialExpiredException() {
  28. super();
  29. }
  30. /**
  31. * Constructs a CredentialExpiredException with the specified detail
  32. * message. A detail message is a String that describes this particular
  33. * exception.
  34. *
  35. * <p>
  36. *
  37. * @param msg the detail message.
  38. */
  39. public CredentialExpiredException(String msg) {
  40. super(msg);
  41. }
  42. }