RequireHttpsAttribute 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
보안되지 않은 HTTP 요청을 강제로 HTTPS를 통해 다시 보내는 특성을 나타냅니다.
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class RequireHttpsAttribute : System.Web.Mvc.FilterAttribute, System.Web.Mvc.IAuthorizationFilter
type RequireHttpsAttribute = class
inherit FilterAttribute
interface IAuthorizationFilter
Public Class RequireHttpsAttribute
Inherits FilterAttribute
Implements IAuthorizationFilter
- 상속
- 특성
- 구현
생성자
RequireHttpsAttribute() |
RequireHttpsAttribute 클래스의 새 인스턴스를 초기화합니다. |
RequireHttpsAttribute(Boolean) |
보안되지 않은 HTTP 요청을 강제로 HTTPS를 통해 다시 보내는 특성을 나타냅니다. |
속성
AllowMultiple |
필터 특성의 인스턴스를 둘 이상 지정할 수 있는지를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 FilterAttribute) |
Order |
작업 필터가 실행되는 순서를 가져오거나 설정합니다. (다음에서 상속됨 FilterAttribute) |
Permanent |
보안되지 않은 HTTP 요청을 강제로 HTTPS를 통해 다시 보내는 특성을 나타냅니다. |
메서드
HandleNonHttpsRequest(AuthorizationContext) |
동작 메서드에 보낸 보안되지 않은 HTTP 요청을 처리합니다. |
OnAuthorization(AuthorizationContext) |
요청이 HTTPS(보안)인지 여부를 확인하고, 그렇지 않은 경우 메서드를 호출합니다 HandleNonHttpsRequest(AuthorizationContext) . |