1/*2 * Licensed to the Apache Software Foundation (ASF) under one3 * or more contributor license agreements. See the NOTICE file4 * distributed with this work for additional information5 * regarding copyright ownership. The ASF licenses this file6 * to you under the Apache License, Version 2.0 (the7 * "License"); you may not use this file except in compliance8 * with the License. You may obtain a copy of the License at9 *10 * http://www.apache.org/licenses/LICENSE-2.011 *12 * Unless required by applicable law or agreed to in writing,13 * software distributed under the License is distributed on an14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY15 * KIND, either express or implied. See the License for the16 * specific language governing permissions and limitations17 * under the License.18 */19package org.apache.shiro.authc;
2021/**22 * Thrown when a system is configured to only allow a certain number of authentication attempts23 * over a period of time and the current session has failed to authenticate successfully within24 * that number. The resulting action of such an exception is application-specific, but25 * most systems either temporarily or permanently lock that account to prevent further26 * attempts.27 *28 * @since 0.129 */30publicclassExcessiveAttemptsExceptionextendsAccountException {
3132/**33 * Creates a new ExcessiveAttemptsException.34 */35publicExcessiveAttemptsException() {
36super();
37 }
3839/**40 * Constructs a new ExcessiveAttemptsException.41 *42 * @param message the reason for the exception43 */44publicExcessiveAttemptsException(String message) {
45super(message);
46 }
4748/**49 * Constructs a new ExcessiveAttemptsException.50 *51 * @param cause the underlying Throwable that caused this exception to be thrown.52 */53publicExcessiveAttemptsException(Throwable cause) {
54super(cause);
55 }
5657/**58 * Constructs a new ExcessiveAttemptsException.59 *60 * @param message the reason for the exception61 * @param cause the underlying Throwable that caused this exception to be thrown.62 */63publicExcessiveAttemptsException(String message, Throwable cause) {
64super(message, cause);
65 }
66 }