|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| InsufficientAuthenticationException.java | - | 50% | 50% | 50% |
|
||||||||||||||
| 1 | /* Copyright 2004, 2005 Acegi Technology Pty Limited | |
| 2 | * | |
| 3 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 4 | * you may not use this file except in compliance with the License. | |
| 5 | * You may obtain a copy of the License at | |
| 6 | * | |
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 8 | * | |
| 9 | * 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 | |
| 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 | //~ Constructors =========================================================== | |
| 37 | ||
| 38 | /** | |
| 39 | * Constructs an <code>InsufficientAuthenticationException</code> with the | |
| 40 | * specified message. | |
| 41 | * | |
| 42 | * @param msg the detail message | |
| 43 | */ | |
| 44 | 1 | public InsufficientAuthenticationException(String msg) { |
| 45 | 1 | 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 | 0 | public InsufficientAuthenticationException(String msg, Throwable t) { |
| 56 | 0 | super(msg, t); |
| 57 | } | |
| 58 | } |
|
||||||||||