1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.security.auth.login;
  6. /**
  7. * Signals that a <code>Credential</code> has expired.
  8. *
  9. * <p> This exception is thrown by LoginModules when they determine
  10. * that a <code>Credential</code> has expired.
  11. * For example, a <code>LoginModule</code> authenticating a user
  12. * in its <code>login</code> method may determine that the user's
  13. * password, although entered correctly, has expired. In this case
  14. * the <code>LoginModule</code> throws this exception to notify
  15. * the application. The application can then take the appropriate
  16. * steps to assist the user in updating the password.
  17. *
  18. * @version 1.11, 01/11/00
  19. */
  20. public class CredentialExpiredException extends LoginException {
  21. /**
  22. * Constructs a CredentialExpiredException with no detail message. A detail
  23. * message is a String that describes this particular exception.
  24. */
  25. public CredentialExpiredException() {
  26. super();
  27. }
  28. /**
  29. * Constructs a CredentialExpiredException with the specified detail
  30. * message. A detail message is a String that describes this particular
  31. * exception.
  32. *
  33. * <p>
  34. *
  35. * @param msg the detail message.
  36. */
  37. public CredentialExpiredException(String msg) {
  38. super(msg);
  39. }
  40. }