1. /*
  2. * @(#)AuthenticationNotSupportedException.java 1.4 00/02/02
  3. *
  4. * Copyright 1999, 2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package javax.naming;
  11. /**
  12. * This exception is thrown when
  13. * the particular flavor of authentication requested is not supported.
  14. * For example, if the program
  15. * is attempting to use strong authentication but the directory/naming
  16. * supports only simple authentication, this exception would be thrown.
  17. * Identification of a particular flavor of authentication is
  18. * provider- and server-specific. It may be specified using
  19. * specific authentication schemes such
  20. * those identified using SASL, or a generic authentication specifier
  21. * (such as "simple" and "strong").
  22. *<p>
  23. * If the program wants to handle this exception in particular, it
  24. * should catch AuthenticationNotSupportedException explicitly before
  25. * attempting to catch NamingException. After catching
  26. * <code>AuthenticationNotSupportedException</code>, the program could
  27. * reattempt the authentication using a different authentication flavor
  28. * by updating the resolved context's environment properties accordingly.
  29. * <p>
  30. * Synchronization and serialization issues that apply to NamingException
  31. * apply directly here.
  32. *
  33. * @author Rosanna Lee
  34. * @author Scott Seligman
  35. * @version 1.4 00/02/02
  36. * @since 1.3
  37. */
  38. public class AuthenticationNotSupportedException extends NamingSecurityException {
  39. /**
  40. * Constructs a new instance of AuthenticationNotSupportedException using
  41. * an explanation. All other fields default to null.
  42. *
  43. * @param explanation A possibly null string containing additional
  44. * detail about this exception.
  45. * @see java.lang.Throwable#getMessage
  46. */
  47. public AuthenticationNotSupportedException(String explanation) {
  48. super(explanation);
  49. }
  50. /**
  51. * Constructs a new instance of AuthenticationNotSupportedException
  52. * all name resolution fields and explanation initialized to null.
  53. */
  54. public AuthenticationNotSupportedException() {
  55. super();
  56. }
  57. /**
  58. * Use serialVersionUID from JNDI 1.1.1 for interoperability
  59. */
  60. private static final long serialVersionUID = -7149033933259492300L;
  61. }