C# Class Sholo.Web.Security.EnhancedSecurity

EnhancedSecurity exposes a public API for use in working with Stateful Forms Authentication in the .NET framework. It also exposes the configured configuration parameters as public static properties.
Mostrar archivo Open project: scottt732/SholoWebSecurity

Public Methods

Method Description
DelayCryptographicExceptionResponse ( ) : void

Delay the execution of a request that caused a CryptographicException by a random amount of time between MinimumDelayOnCryptographicException and MaximumDelayOnCryptographicException

DelayMaliciousResponse ( ) : void

Delay the execution of the malicious request by a random amount of time between MinimumDelayOnMaliciousRequest and MaximumDelayOnMaliciousRequest

DelaySuspiciousResponse ( ) : void

Delay the execution of the suspicious request by a random amount of time between MinimumDelayOnSuspiciousRequest and MaximumDelayOnSuspiciousRequest

Initialize ( ) : void

Initializes configuration-related properties and validates configuration.

Private Methods

Method Description
EnhancedSecurity ( ) : System

Static constructor

GetFormsAuthStatus ( ) : FormsAuthenticationStatus
SetFormsAuthStatus ( FormsAuthenticationStatus status ) : void

Method Details

DelayCryptographicExceptionResponse() public static method

Delay the execution of a request that caused a CryptographicException by a random amount of time between MinimumDelayOnCryptographicException and MaximumDelayOnCryptographicException
public static DelayCryptographicExceptionResponse ( ) : void
return void

DelayMaliciousResponse() public static method

Delay the execution of the malicious request by a random amount of time between MinimumDelayOnMaliciousRequest and MaximumDelayOnMaliciousRequest
public static DelayMaliciousResponse ( ) : void
return void

DelaySuspiciousResponse() public static method

Delay the execution of the suspicious request by a random amount of time between MinimumDelayOnSuspiciousRequest and MaximumDelayOnSuspiciousRequest
public static DelaySuspiciousResponse ( ) : void
return void

Initialize() public static method

Initializes configuration-related properties and validates configuration.
public static Initialize ( ) : void
return void