1. /*
  2. * @(#)CredentialExpiredException.java 1.17 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 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.17, 12/19/03
  21. */
  22. public class CredentialExpiredException extends CredentialException {
  23. private static final long serialVersionUID = -5344739593859737937L;
  24. /**
  25. * Constructs a CredentialExpiredException with no detail message. A detail
  26. * message is a String that describes this particular exception.
  27. */
  28. public CredentialExpiredException() {
  29. super();
  30. }
  31. /**
  32. * Constructs a CredentialExpiredException with the specified detail
  33. * message. A detail message is a String that describes this particular
  34. * exception.
  35. *
  36. * <p>
  37. *
  38. * @param msg the detail message.
  39. */
  40. public CredentialExpiredException(String msg) {
  41. super(msg);
  42. }
  43. }