C# Class mojoPortal.Web.Framework.SecurityHelper

Afficher le fichier Open project: joeaudette/mojoportal

Méthodes publiques

Méthode Description
DisableBrowserCache ( ) : void
DisableDownloadCache ( ) : void
GetCurrentTrustLevel ( ) : AspNetHostingPermissionLevel

Gets the current Trust Level

GetEmailRegexExpression ( ) : string

it is better to use this method than to directly use the constant above becuase this allows you to override the experession if needed to solve a problem

GetMaxLengthRegexValidationExpression ( int length ) : string
GetRandomASPNET20machinekey ( ) : string
GetRandomKey ( int bytelength ) : string
GetRegexValidationForAllowedExtensions ( string pipeSeparatedExtensions ) : string
GetRegexValidationForAllowedExtensionsJqueryFileUploader ( string pipeSeparatedExtensions ) : string
IsValidEmailAddress ( string email ) : bool
PreventCrossSiteScripting ( String html ) : string
PreventCrossSiteScripting ( String html, String errorHeader ) : string
PreventCrossSiteScripting ( String html, String errorHeader, bool removeMarkupOnFailure ) : string
RemoveAngleBrackets ( string text ) : string
RemoveMarkup ( string text ) : string
SanitizeHtml ( String html ) : string

Private Methods

Méthode Description
GetXssFilter ( ) : XssFilter

Method Details

DisableBrowserCache() public static méthode

public static DisableBrowserCache ( ) : void
Résultat void

DisableDownloadCache() public static méthode

public static DisableDownloadCache ( ) : void
Résultat void

GetCurrentTrustLevel() public static méthode

Gets the current Trust Level
public static GetCurrentTrustLevel ( ) : AspNetHostingPermissionLevel
Résultat AspNetHostingPermissionLevel

GetEmailRegexExpression() public static méthode

it is better to use this method than to directly use the constant above becuase this allows you to override the experession if needed to solve a problem
public static GetEmailRegexExpression ( ) : string
Résultat string

GetMaxLengthRegexValidationExpression() public static méthode

public static GetMaxLengthRegexValidationExpression ( int length ) : string
length int
Résultat string

GetRandomASPNET20machinekey() public static méthode

public static GetRandomASPNET20machinekey ( ) : string
Résultat string

GetRandomKey() public static méthode

public static GetRandomKey ( int bytelength ) : string
bytelength int
Résultat string

GetRegexValidationForAllowedExtensions() public static méthode

public static GetRegexValidationForAllowedExtensions ( string pipeSeparatedExtensions ) : string
pipeSeparatedExtensions string
Résultat string

GetRegexValidationForAllowedExtensionsJqueryFileUploader() public static méthode

public static GetRegexValidationForAllowedExtensionsJqueryFileUploader ( string pipeSeparatedExtensions ) : string
pipeSeparatedExtensions string
Résultat string

IsValidEmailAddress() public static méthode

public static IsValidEmailAddress ( string email ) : bool
email string
Résultat bool

PreventCrossSiteScripting() public static méthode

public static PreventCrossSiteScripting ( String html ) : string
html String
Résultat string

PreventCrossSiteScripting() public static méthode

public static PreventCrossSiteScripting ( String html, String errorHeader ) : string
html String
errorHeader String
Résultat string

PreventCrossSiteScripting() public static méthode

public static PreventCrossSiteScripting ( String html, String errorHeader, bool removeMarkupOnFailure ) : string
html String
errorHeader String
removeMarkupOnFailure bool
Résultat string

RemoveAngleBrackets() public static méthode

public static RemoveAngleBrackets ( string text ) : string
text string
Résultat string

RemoveMarkup() public static méthode

public static RemoveMarkup ( string text ) : string
text string
Résultat string

SanitizeHtml() public static méthode

public static SanitizeHtml ( String html ) : string
html String
Résultat string