1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.acegisecurity;
17
18 /***
19 * Thrown if an authentication request is rejected because the credentials are
20 * not sufficiently trusted.
21 *
22 * <p>
23 * {{@link org.acegisecurity.vote.AccessDecisionVoter}s will typically throw
24 * this exception if they are dissatisfied with the level of the
25 * authentication, such as if performed using a remember-me mechnanism or
26 * anonymously. The commonly used {@link
27 * org.acegisecurity.intercept.web.SecurityEnforcementFilter} will thus
28 * cause the <code>AuthenticationEntryPoint</code> to be called, allowing the
29 * principal to authenticate with a stronger level of authentication. }
30 * </p>
31 *
32 * @author Ben Alex
33 * @version $Id: InsufficientAuthenticationException.java,v 1.2 2005/11/17 00:55:49 benalex Exp $
34 */
35 public class InsufficientAuthenticationException extends AuthenticationException {
36
37
38 /***
39 * Constructs an <code>InsufficientAuthenticationException</code> with the
40 * specified message.
41 *
42 * @param msg the detail message
43 */
44 public InsufficientAuthenticationException(String msg) {
45 super(msg);
46 }
47
48 /***
49 * Constructs an <code>InsufficientAuthenticationException</code> with the
50 * specified message and root cause.
51 *
52 * @param msg the detail message
53 * @param t root cause
54 */
55 public InsufficientAuthenticationException(String msg, Throwable t) {
56 super(msg, t);
57 }
58 }