01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: super ();
62: }
63:
64: /**
65: * <p>Constructor with exception message.</p>
66: * @param message The exception message.
67: */
68: public SSOException(String message) {
69: super (message);
70: }
71:
72: /**
73: * <p>Constructor with nested exception.</p>
74: * @param nested Nested exception.
75: */
76: public SSOException(Throwable nested) {
77: super (nested);
78: }
79:
80: /**
81: * <p>Constructor with exception message and nested exception.</p>
82: * @param msg The exception message.
83: * @param nested Nested exception.
84: */
85: public SSOException(String msg, Throwable nested) {
86: super(msg, nested);
87: }
88:
89: }
|