C# Class System.Web.Security.FormsAuthentication

Show file Open project: kumpera/mono Class Usage Examples

Private Properties

Property Type Description
Decrypt2 System.Web.Security.FormsAuthenticationTicket
HashPasswordForStoringInConfigFile string
MapUrl string
Redirect void
Redirect void
RedirectToLoginPage void

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

Authenticate() public static method

public static Authenticate ( string name, string password ) : bool
name string
password string
return bool

Decrypt() public static method

public static Decrypt ( string encryptedTicket ) : System.Web.Security.FormsAuthenticationTicket
encryptedTicket string
return System.Web.Security.FormsAuthenticationTicket

EnableFormsAuthentication() public static method

public static EnableFormsAuthentication ( NameValueCollection configurationData ) : void
configurationData System.Collections.Specialized.NameValueCollection
return void

Encrypt() public static method

public static Encrypt ( System.Web.Security.FormsAuthenticationTicket ticket ) : string
ticket System.Web.Security.FormsAuthenticationTicket
return string

FormsAuthentication() public method

public FormsAuthentication ( ) : System.Collections
return System.Collections

GetAuthCookie() public static method

public static GetAuthCookie ( string userName, bool createPersistentCookie ) : System.Web.HttpCookie
userName string
createPersistentCookie bool
return System.Web.HttpCookie

GetAuthCookie() public static method

public static GetAuthCookie ( string userName, bool createPersistentCookie, string strCookiePath ) : System.Web.HttpCookie
userName string
createPersistentCookie bool
strCookiePath string
return System.Web.HttpCookie

GetRedirectUrl() public static method

public static GetRedirectUrl ( string userName, bool createPersistentCookie ) : string
userName string
createPersistentCookie bool
return string

HashPasswordForStoringInConfigFile() public static method

public static HashPasswordForStoringInConfigFile ( string password, string passwordFormat ) : string
password string
passwordFormat string
return string

Initialize() public static method

public static Initialize ( ) : void
return void

RedirectFromLoginPage() public static method

public static RedirectFromLoginPage ( string userName, bool createPersistentCookie ) : void
userName string
createPersistentCookie bool
return void

RedirectFromLoginPage() public static method

public static RedirectFromLoginPage ( string userName, bool createPersistentCookie, string strCookiePath ) : void
userName string
createPersistentCookie bool
strCookiePath string
return void

RedirectToLoginPage() public static method

public static RedirectToLoginPage ( ) : void
return void

RenewTicketIfOld() public static method

public static RenewTicketIfOld ( FormsAuthenticationTicket tOld ) : FormsAuthenticationTicket
tOld FormsAuthenticationTicket
return FormsAuthenticationTicket

SetAuthCookie() public static method

public static SetAuthCookie ( string userName, bool createPersistentCookie ) : void
userName string
createPersistentCookie bool
return void

SetAuthCookie() public static method

public static SetAuthCookie ( string userName, bool createPersistentCookie, string strCookiePath ) : void
userName string
createPersistentCookie bool
strCookiePath string
return void

SignOut() public static method

public static SignOut ( ) : void
return void