1. /*
  2. * @(#)CredentialNotFoundException.java 1.2 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 credential was not found.
  10. *
  11. * <p> This exception may be thrown by a LoginModule if it is unable
  12. * to locate a credential necessary to perform authentication.
  13. *
  14. * @version 1.2, 12/19/03
  15. * @since 1.5
  16. */
  17. public class CredentialNotFoundException extends CredentialException {
  18. private static final long serialVersionUID = -7779934467214319475L;
  19. /**
  20. * Constructs a CredentialNotFoundException with no detail message.
  21. * A detail message is a String that describes this particular exception.
  22. */
  23. public CredentialNotFoundException() {
  24. super();
  25. }
  26. /**
  27. * Constructs a CredentialNotFoundException with the specified
  28. * detail message. A detail message is a String that describes
  29. * this particular exception.
  30. *
  31. * <p>
  32. *
  33. * @param msg the detail message.
  34. */
  35. public CredentialNotFoundException(String msg) {
  36. super(msg);
  37. }
  38. }