AntiForgery Class

Definition

Helps prevent malicious scripts from submitting forged page requests.

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

Methods

GetHtml()

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

GetHtml(HttpContextBase, String, String, String)
Obsolete.

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

GetTokens(String, String, String)

Gets the search tokens.

Validate()

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

Validate(HttpContextBase, String)
Obsolete.

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

Validate(String, String)

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

Applies to