C# Класс System.Web.Security.FormsAuthentication

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Decrypt2 System.Web.Security.FormsAuthenticationTicket
HashPasswordForStoringInConfigFile string
MapUrl string
Redirect void
Redirect void
RedirectToLoginPage void

Открытые методы

Метод Описание
Authenticate ( string name, string password ) : bool
Decrypt ( string encryptedTicket ) : System.Web.Security.FormsAuthenticationTicket
EnableFormsAuthentication ( NameValueCollection configurationData ) : void
Encrypt ( System.Web.Security.FormsAuthenticationTicket ticket ) : string
FormsAuthentication ( ) : System.Collections
GetAuthCookie ( string userName, bool createPersistentCookie ) : System.Web.HttpCookie
GetAuthCookie ( string userName, bool createPersistentCookie, string strCookiePath ) : System.Web.HttpCookie
GetRedirectUrl ( string userName, bool createPersistentCookie ) : string
HashPasswordForStoringInConfigFile ( string password, string passwordFormat ) : string
Initialize ( ) : void
RedirectFromLoginPage ( string userName, bool createPersistentCookie ) : void
RedirectFromLoginPage ( string userName, bool createPersistentCookie, string strCookiePath ) : void
RedirectToLoginPage ( ) : void
RenewTicketIfOld ( FormsAuthenticationTicket tOld ) : FormsAuthenticationTicket
SetAuthCookie ( string userName, bool createPersistentCookie ) : void
SetAuthCookie ( string userName, bool createPersistentCookie, string strCookiePath ) : void
SignOut ( ) : void

Приватные методы

Метод Описание
Decrypt2 ( byte bytes ) : System.Web.Security.FormsAuthenticationTicket
HashPasswordForStoringInConfigFile ( string password, FormsAuthPasswordFormat passwordFormat ) : string
MapUrl ( string url ) : string
Redirect ( string url ) : void
Redirect ( string url, bool end ) : void
RedirectToLoginPage ( string extraQueryString ) : void

Описание методов

Authenticate() публичный статический Метод

public static Authenticate ( string name, string password ) : bool
name string
password string
Результат bool

Decrypt() публичный статический Метод

public static Decrypt ( string encryptedTicket ) : System.Web.Security.FormsAuthenticationTicket
encryptedTicket string
Результат System.Web.Security.FormsAuthenticationTicket

EnableFormsAuthentication() публичный статический Метод

public static EnableFormsAuthentication ( NameValueCollection configurationData ) : void
configurationData System.Collections.Specialized.NameValueCollection
Результат void

Encrypt() публичный статический Метод

public static Encrypt ( System.Web.Security.FormsAuthenticationTicket ticket ) : string
ticket System.Web.Security.FormsAuthenticationTicket
Результат string

FormsAuthentication() публичный Метод

public FormsAuthentication ( ) : System.Collections
Результат System.Collections

GetAuthCookie() публичный статический Метод

public static GetAuthCookie ( string userName, bool createPersistentCookie ) : System.Web.HttpCookie
userName string
createPersistentCookie bool
Результат System.Web.HttpCookie

GetAuthCookie() публичный статический Метод

public static GetAuthCookie ( string userName, bool createPersistentCookie, string strCookiePath ) : System.Web.HttpCookie
userName string
createPersistentCookie bool
strCookiePath string
Результат System.Web.HttpCookie

GetRedirectUrl() публичный статический Метод

public static GetRedirectUrl ( string userName, bool createPersistentCookie ) : string
userName string
createPersistentCookie bool
Результат string

HashPasswordForStoringInConfigFile() публичный статический Метод

public static HashPasswordForStoringInConfigFile ( string password, string passwordFormat ) : string
password string
passwordFormat string
Результат string

Initialize() публичный статический Метод

public static Initialize ( ) : void
Результат void

RedirectFromLoginPage() публичный статический Метод

public static RedirectFromLoginPage ( string userName, bool createPersistentCookie ) : void
userName string
createPersistentCookie bool
Результат void

RedirectFromLoginPage() публичный статический Метод

public static RedirectFromLoginPage ( string userName, bool createPersistentCookie, string strCookiePath ) : void
userName string
createPersistentCookie bool
strCookiePath string
Результат void

RedirectToLoginPage() публичный статический Метод

public static RedirectToLoginPage ( ) : void
Результат void

RenewTicketIfOld() публичный статический Метод

public static RenewTicketIfOld ( FormsAuthenticationTicket tOld ) : FormsAuthenticationTicket
tOld FormsAuthenticationTicket
Результат FormsAuthenticationTicket

SetAuthCookie() публичный статический Метод

public static SetAuthCookie ( string userName, bool createPersistentCookie ) : void
userName string
createPersistentCookie bool
Результат void

SetAuthCookie() публичный статический Метод

public static SetAuthCookie ( string userName, bool createPersistentCookie, string strCookiePath ) : void
userName string
createPersistentCookie bool
strCookiePath string
Результат void

SignOut() публичный статический Метод

public static SignOut ( ) : void
Результат void