1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.resource.spi;
  6. import javax.resource.ResourceException;
  7. /** A SecurityException indicates error conditions related to the security
  8. * contract between an application server and resource adapter. The common
  9. * error conditions represented by this exception are:
  10. * <UL>
  11. * <LI>invalid security information (represented as a Subject instance) passed
  12. * across the security contract - for example, credentials have expired or
  13. * have invalid format
  14. * <LI>lack of support for a specific security mechanism in an EIS or resource
  15. * adapter
  16. * <LI>failure to create a connection to an EIS because of failed authentication or
  17. * authorization
  18. * <LI>failure to authenticate a resource principal to an EIS instance or failure
  19. * to establish a secure association with an underlying EIS instance
  20. * <LI>access control exception to indicate that a requested access to an EIS
  21. * resource or a request to create a new connection is denied
  22. * </UL>
  23. * @version 0.7
  24. * @author Rahul Sharma
  25. */
  26. public class SecurityException extends javax.resource.ResourceException {
  27. /**
  28. * Create a SecurityException.
  29. *
  30. * @param reason a description of the exception
  31. * @param errorCode a string specifying the vendor specific
  32. * error code
  33. **/
  34. public
  35. SecurityException(String reason, String errorCode) {
  36. super(reason, errorCode);
  37. }
  38. /**
  39. * Create a SecurityException with reason.
  40. *
  41. * @param reason a description of the exception
  42. **/
  43. public
  44. SecurityException(String reason) {
  45. super(reason);
  46. }
  47. }