- /*
- * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
- * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
- */
-
- package javax.resource.spi;
-
- import javax.resource.ResourceException;
-
- /** A SecurityException indicates error conditions related to the security
- * contract between an application server and resource adapter. The common
- * error conditions represented by this exception are:
- * <UL>
- * <LI>invalid security information (represented as a Subject instance) passed
- * across the security contract - for example, credentials have expired or
- * have invalid format
- * <LI>lack of support for a specific security mechanism in an EIS or resource
- * adapter
- * <LI>failure to create a connection to an EIS because of failed authentication or
- * authorization
- * <LI>failure to authenticate a resource principal to an EIS instance or failure
- * to establish a secure association with an underlying EIS instance
- * <LI>access control exception to indicate that a requested access to an EIS
- * resource or a request to create a new connection is denied
- * </UL>
- * @version 0.7
- * @author Rahul Sharma
- */
-
- public class SecurityException extends javax.resource.ResourceException {
-
- /**
- * Create a SecurityException.
- *
- * @param reason a description of the exception
- * @param errorCode a string specifying the vendor specific
- * error code
- **/
- public
- SecurityException(String reason, String errorCode) {
- super(reason, errorCode);
- }
-
- /**
- * Create a SecurityException with reason.
- *
- * @param reason a description of the exception
- **/
- public
- SecurityException(String reason) {
- super(reason);
- }
- }