01: /* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
02: *
03: * Licensed under the Apache License, Version 2.0 (the "License");
04: * you may not use this file except in compliance with the License.
05: * You may obtain a copy of the License at
06: *
07: * http://www.apache.org/licenses/LICENSE-2.0
08: *
09: * Unless required by applicable law or agreed to in writing, software
10: * distributed under the License is distributed on an "AS IS" BASIS,
11: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: * See the License for the specific language governing permissions and
13: * limitations under the License.
14: */
15:
16: package org.acegisecurity;
17:
18: /**
19: * Thrown if an authentication request is rejected because the credentials are not sufficiently trusted.<p>{{@link
20: * org.acegisecurity.vote.AccessDecisionVoter}s will typically throw this exception if they are dissatisfied with the
21: * level of the authentication, such as if performed using a remember-me mechanism or anonymously. The commonly used
22: * {@link org.acegisecurity.ui.ExceptionTranslationFilter} will thus cause the <code>AuthenticationEntryPoint</code>
23: * to be called, allowing the principal to authenticate with a stronger level of authentication.}</p>
24: *
25: * @author Ben Alex
26: * @version $Id: InsufficientAuthenticationException.java 1496 2006-05-23 13:38:33Z benalex $
27: */
28: public class InsufficientAuthenticationException extends
29: AuthenticationException {
30: //~ Constructors ===================================================================================================
31:
32: /**
33: * Constructs an <code>InsufficientAuthenticationException</code> with the
34: * specified message.
35: *
36: * @param msg the detail message
37: */
38: public InsufficientAuthenticationException(String msg) {
39: super (msg);
40: }
41:
42: /**
43: * Constructs an <code>InsufficientAuthenticationException</code> with the
44: * specified message and root cause.
45: *
46: * @param msg the detail message
47: * @param t root cause
48: */
49: public InsufficientAuthenticationException(String msg, Throwable t) {
50: super(msg, t);
51: }
52: }
|