RequireHttpsAttribute 클래스

정의

보안되지 않은 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 클래스의 새 인스턴스를 초기화합니다.

RequireHttpsAttribute(Boolean)

보안되지 않은 HTTP 요청을 강제로 HTTPS를 통해 다시 보내는 특성을 나타냅니다.

속성

AllowMultiple

필터 특성의 인스턴스를 둘 이상 지정할 수 있는지를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 FilterAttribute)
Order

작업 필터가 실행되는 순서를 가져오거나 설정합니다.

(다음에서 상속됨 FilterAttribute)
Permanent

보안되지 않은 HTTP 요청을 강제로 HTTPS를 통해 다시 보내는 특성을 나타냅니다.

메서드

HandleNonHttpsRequest(AuthorizationContext)

동작 메서드에 보낸 보안되지 않은 HTTP 요청을 처리합니다.

OnAuthorization(AuthorizationContext)

요청이 HTTPS(보안)인지 여부를 확인하고, 그렇지 않은 경우 메서드를 호출합니다 HandleNonHttpsRequest(AuthorizationContext) .

적용 대상