AntiForgery AntiForgery AntiForgery Class

Definition

Helps prevent malicious scripts from submitting forged page requests.

public static class AntiForgery
type AntiForgery = class
Public Class AntiForgery
Inheritance
AntiForgeryAntiForgeryAntiForgery

Methods

GetHtml() GetHtml() GetHtml()

Adds an authenticating token to a form to help protect against request forgery.

GetHtml(HttpContextBase, String, String, String) GetHtml(HttpContextBase, String, String, String) GetHtml(HttpContextBase, String, String, String)

Adds an authenticating token to a form to help protect against request forgery and lets callers specify authentication details.

GetTokens(String, String, String) GetTokens(String, String, String) GetTokens(String, String, String)

Gets the search tokens.

Validate() Validate() Validate()

Validates that input data from an HTML form field comes from the user who submitted the data.

Validate(String, String) Validate(String, String) Validate(String, String)

Validates that input data from an HTML form field comes from the user who submitted the data.

Validate(HttpContextBase, String) Validate(HttpContextBase, String) Validate(HttpContextBase, String)

Validates that input data from an HTML form field comes from the user who submitted the data and lets callers specify additional validation details.

Applies to