C# Class System.Web.Security.FormsAuthentication

Afficher le fichier Open project: kumpera/mono Class Usage Examples

Private Properties

Свойство Type Description
Decrypt2 System.Web.Security.FormsAuthenticationTicket
HashPasswordForStoringInConfigFile string
MapUrl string
Redirect void
Redirect void
RedirectToLoginPage void

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static Authenticate ( string name, string password ) : bool
name string
password string
Résultat bool

Decrypt() public static méthode

public static Decrypt ( string encryptedTicket ) : System.Web.Security.FormsAuthenticationTicket
encryptedTicket string
Résultat System.Web.Security.FormsAuthenticationTicket

EnableFormsAuthentication() public static méthode

public static EnableFormsAuthentication ( NameValueCollection configurationData ) : void
configurationData System.Collections.Specialized.NameValueCollection
Résultat void

Encrypt() public static méthode

public static Encrypt ( System.Web.Security.FormsAuthenticationTicket ticket ) : string
ticket System.Web.Security.FormsAuthenticationTicket
Résultat string

FormsAuthentication() public méthode

public FormsAuthentication ( ) : System.Collections
Résultat System.Collections

GetAuthCookie() public static méthode

public static GetAuthCookie ( string userName, bool createPersistentCookie ) : System.Web.HttpCookie
userName string
createPersistentCookie bool
Résultat System.Web.HttpCookie

GetAuthCookie() public static méthode

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

GetRedirectUrl() public static méthode

public static GetRedirectUrl ( string userName, bool createPersistentCookie ) : string
userName string
createPersistentCookie bool
Résultat string

HashPasswordForStoringInConfigFile() public static méthode

public static HashPasswordForStoringInConfigFile ( string password, string passwordFormat ) : string
password string
passwordFormat string
Résultat string

Initialize() public static méthode

public static Initialize ( ) : void
Résultat void

RedirectFromLoginPage() public static méthode

public static RedirectFromLoginPage ( string userName, bool createPersistentCookie ) : void
userName string
createPersistentCookie bool
Résultat void

RedirectFromLoginPage() public static méthode

public static RedirectFromLoginPage ( string userName, bool createPersistentCookie, string strCookiePath ) : void
userName string
createPersistentCookie bool
strCookiePath string
Résultat void

RedirectToLoginPage() public static méthode

public static RedirectToLoginPage ( ) : void
Résultat void

RenewTicketIfOld() public static méthode

public static RenewTicketIfOld ( FormsAuthenticationTicket tOld ) : FormsAuthenticationTicket
tOld FormsAuthenticationTicket
Résultat FormsAuthenticationTicket

SetAuthCookie() public static méthode

public static SetAuthCookie ( string userName, bool createPersistentCookie ) : void
userName string
createPersistentCookie bool
Résultat void

SetAuthCookie() public static méthode

public static SetAuthCookie ( string userName, bool createPersistentCookie, string strCookiePath ) : void
userName string
createPersistentCookie bool
strCookiePath string
Résultat void

SignOut() public static méthode

public static SignOut ( ) : void
Résultat void