View Javadoc

1   /* 
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8   *
9   *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17  
18  package org.apache.jetspeed.sso;
19  
20  import org.apache.jetspeed.exception.JetspeedException;
21  
22  /***
23  * <p>Exception throwns by members of the sso service.</p>
24  *
25  * @author <a href="mailto:rogerrut	@apache.org">Roger Ruttimann</a>
26  */
27  
28  public class SSOException extends JetspeedException {
29  
30     /*** <p>Adding the credentials to the request failed.</p> */
31     public static final String BASIC_AUTHENTICATION_ADD_FAILED = "Adding the credentials to the request failed.";
32   
33     /*** <p>The site has no Single Sign On credentails attached.</p> */
34     public static final String NO_CREDENTIALS_FOR_SITE = "The site has no Single Sign On credentails attached.";
35  
36     /*** <p>Adding the credentials for site failed.</p> */
37     public static final String FAILED_ADDING_CREDENTIALS_FOR_SITE = "Adding the credential for site failed.";
38     
39     /*** <p>Removing the credential for site failed.</p> */
40     public static final String FAILED_REMOVING_CREDENTIALS_FOR_SITE = "Removing the credential for site failed.";
41     
42     /*** <p>Failed to store site info in database.</p> */
43     public static final String FAILED_STORING_SITE_INFO_IN_DB = "Failed to store site info in database.";
44     
45     /*** <p>Requested principal doesn't exist in Principal store.</p> */
46     public static final String REQUESTED_PRINCIPAL_DOES_NOT_EXIST = "Requested principal doesn't exist in Principal store.";
47     
48     /*** <p>Could not remove Principla from SITE mapping table.</p> */
49     public static final String FAILED_REMOVING_PRINCIPAL_FROM_MAPPING_TABLE_FOR_SITE = "Could not remove Principal from SITE mapping table.";
50     
51     /*** <p>Could not add Principal from SITE mapping table.</p> */
52     public static final String FAILED_ADDING_PRINCIPAL_TO_MAPPING_TABLE_FOR_SITE = "Could not add Principal from SITE mapping table.";
53     
54     /*** <p>Site/principal has remote principal. Calll update.</p> */
55     public static final String REMOTE_PRINCIPAL_EXISTS_CALL_UPDATE = "Remote principal for site/principal already exists. Call update instead";
56     
57     /***
58      * <p>Default Constructor.</p>
59      */
60     public SSOException()
61     {
62         super();
63     }
64  
65     /***
66      * <p>Constructor with exception message.</p>
67      * @param message The exception message.
68      */
69     public SSOException(String message)
70     {
71         super(message);
72     }
73  
74     /***
75      * <p>Constructor with nested exception.</p>
76      * @param nested Nested exception.
77      */
78     public SSOException(Throwable nested)
79     {
80         super(nested);
81     }
82  
83     /***
84      * <p>Constructor with exception message and nested exception.</p>
85      * @param msg The exception message.
86      * @param nested Nested exception.
87      */
88     public SSOException(String msg, Throwable nested)
89     {
90         super(msg, nested);
91     }
92  
93  }
94