C# 클래스 mojoPortal.Web.Framework.SecurityHelper

파일 보기 프로젝트 열기: joeaudette/mojoportal

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
GetXssFilter ( ) : XssFilter

메소드 상세

DisableBrowserCache() 공개 정적인 메소드

public static DisableBrowserCache ( ) : void
리턴 void

DisableDownloadCache() 공개 정적인 메소드

public static DisableDownloadCache ( ) : void
리턴 void

GetCurrentTrustLevel() 공개 정적인 메소드

Gets the current Trust Level
public static GetCurrentTrustLevel ( ) : AspNetHostingPermissionLevel
리턴 AspNetHostingPermissionLevel

GetEmailRegexExpression() 공개 정적인 메소드

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
리턴 string

GetMaxLengthRegexValidationExpression() 공개 정적인 메소드

public static GetMaxLengthRegexValidationExpression ( int length ) : string
length int
리턴 string

GetRandomASPNET20machinekey() 공개 정적인 메소드

public static GetRandomASPNET20machinekey ( ) : string
리턴 string

GetRandomKey() 공개 정적인 메소드

public static GetRandomKey ( int bytelength ) : string
bytelength int
리턴 string

GetRegexValidationForAllowedExtensions() 공개 정적인 메소드

public static GetRegexValidationForAllowedExtensions ( string pipeSeparatedExtensions ) : string
pipeSeparatedExtensions string
리턴 string

GetRegexValidationForAllowedExtensionsJqueryFileUploader() 공개 정적인 메소드

public static GetRegexValidationForAllowedExtensionsJqueryFileUploader ( string pipeSeparatedExtensions ) : string
pipeSeparatedExtensions string
리턴 string

IsValidEmailAddress() 공개 정적인 메소드

public static IsValidEmailAddress ( string email ) : bool
email string
리턴 bool

PreventCrossSiteScripting() 공개 정적인 메소드

public static PreventCrossSiteScripting ( String html ) : string
html String
리턴 string

PreventCrossSiteScripting() 공개 정적인 메소드

public static PreventCrossSiteScripting ( String html, String errorHeader ) : string
html String
errorHeader String
리턴 string

PreventCrossSiteScripting() 공개 정적인 메소드

public static PreventCrossSiteScripting ( String html, String errorHeader, bool removeMarkupOnFailure ) : string
html String
errorHeader String
removeMarkupOnFailure bool
리턴 string

RemoveAngleBrackets() 공개 정적인 메소드

public static RemoveAngleBrackets ( string text ) : string
text string
리턴 string

RemoveMarkup() 공개 정적인 메소드

public static RemoveMarkup ( string text ) : string
text string
리턴 string

SanitizeHtml() 공개 정적인 메소드

public static SanitizeHtml ( String html ) : string
html String
리턴 string