spring security AccessDeniedHandler 源码

  • 2022-08-13
  • 浏览 (433)

spring security AccessDeniedHandler 代码

文件路径:/web/src/main/java/org/springframework/security/web/access/AccessDeniedHandler.java

/*
 * Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.springframework.security.web.access;

import java.io.IOException;

import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import org.springframework.security.access.AccessDeniedException;

/**
 * Used by {@link ExceptionTranslationFilter} to handle an
 * <code>AccessDeniedException</code>.
 *
 * @author Ben Alex
 */
public interface AccessDeniedHandler {

	/**
	 * Handles an access denied failure.
	 * @param request that resulted in an <code>AccessDeniedException</code>
	 * @param response so that the user agent can be advised of the failure
	 * @param accessDeniedException that caused the invocation
	 * @throws IOException in the event of an IOException
	 * @throws ServletException in the event of a ServletException
	 */
	void handle(HttpServletRequest request, HttpServletResponse response, AccessDeniedException accessDeniedException)
			throws IOException, ServletException;

}

相关信息

spring security 源码目录

相关文章

spring security AccessDeniedHandlerImpl 源码

spring security AuthorizationManagerWebInvocationPrivilegeEvaluator 源码

spring security DefaultWebInvocationPrivilegeEvaluator 源码

spring security DelegatingAccessDeniedHandler 源码

spring security ExceptionTranslationFilter 源码

spring security RequestMatcherDelegatingAccessDeniedHandler 源码

spring security RequestMatcherDelegatingWebInvocationPrivilegeEvaluator 源码

spring security WebInvocationPrivilegeEvaluator 源码

spring security package-info 源码

0  赞