C# Class Simulator.SimIpHistory

Mostrar archivo Open project: Microsoft/StopGuessing Class Usage Examples

Public Properties

Property Type Description
AccountFailuresFrequentPassword StopGuessing.DataStructures.DecayingDouble
AccountFailuresInfrequentPassword StopGuessing.DataStructures.DecayingDouble
PasswordFailuresNoTypoFrequentPassword StopGuessing.DataStructures.DecayingDouble
PasswordFailuresNoTypoInfrequentPassword StopGuessing.DataStructures.DecayingDouble
PasswordFailuresTypoFrequentPassword StopGuessing.DataStructures.DecayingDouble
PasswordFailuresTypoInfrequentPassword StopGuessing.DataStructures.DecayingDouble
RecentPotentialTypos SmallCapacityConstrainedSet
RepeatAccountFailuresFrequentPassword StopGuessing.DataStructures.DecayingDouble
RepeatAccountFailuresInfrequentPassword StopGuessing.DataStructures.DecayingDouble
RepeatPasswordFailuresNoTypoFrequentPassword StopGuessing.DataStructures.DecayingDouble
RepeatPasswordFailuresNoTypoInfrequentPassword StopGuessing.DataStructures.DecayingDouble
RepeatPasswordFailuresTypoFrequentPassword StopGuessing.DataStructures.DecayingDouble
RepeatPasswordFailuresTypoInfrequentPassword StopGuessing.DataStructures.DecayingDouble
SuccessfulLogins StopGuessing.DataStructures.DecayingDouble

Public Methods

Method Description
AdjustBlockingScoreForPastTyposTreatedAsFullFailures ( Simulator simulator, SimulatedUserAccount account, System.DateTime whenUtc, string correctPassword ) : void

This analysis will examine the client IP's previous failed attempts to login to this account to determine if any failed attempts were due to typos.

GetAllScores ( System.TimeSpan halfLife, System.DateTime whenUtc ) : double[]
SimIpHistory ( int numberOfPastLoginsToKeepForTypoAnalysis ) : System

Method Details

AdjustBlockingScoreForPastTyposTreatedAsFullFailures() public method

This analysis will examine the client IP's previous failed attempts to login to this account to determine if any failed attempts were due to typos.
public AdjustBlockingScoreForPastTyposTreatedAsFullFailures ( Simulator simulator, SimulatedUserAccount account, System.DateTime whenUtc, string correctPassword ) : void
simulator Simulator
account SimulatedUserAccount The account that the client is currently trying to login to.
whenUtc System.DateTime
correctPassword string The correct password for this account. (We can only know it because /// the client must have provided the correct one this loginAttempt.)
return void

GetAllScores() public method

public GetAllScores ( System.TimeSpan halfLife, System.DateTime whenUtc ) : double[]
halfLife System.TimeSpan
whenUtc System.DateTime
return double[]

SimIpHistory() public method

public SimIpHistory ( int numberOfPastLoginsToKeepForTypoAnalysis ) : System
numberOfPastLoginsToKeepForTypoAnalysis int
return System

Property Details

AccountFailuresFrequentPassword public_oe property

public DecayingDouble,StopGuessing.DataStructures AccountFailuresFrequentPassword
return StopGuessing.DataStructures.DecayingDouble

AccountFailuresInfrequentPassword public_oe property

public DecayingDouble,StopGuessing.DataStructures AccountFailuresInfrequentPassword
return StopGuessing.DataStructures.DecayingDouble

PasswordFailuresNoTypoFrequentPassword public_oe property

public DecayingDouble,StopGuessing.DataStructures PasswordFailuresNoTypoFrequentPassword
return StopGuessing.DataStructures.DecayingDouble

PasswordFailuresNoTypoInfrequentPassword public_oe property

public DecayingDouble,StopGuessing.DataStructures PasswordFailuresNoTypoInfrequentPassword
return StopGuessing.DataStructures.DecayingDouble

PasswordFailuresTypoFrequentPassword public_oe property

public DecayingDouble,StopGuessing.DataStructures PasswordFailuresTypoFrequentPassword
return StopGuessing.DataStructures.DecayingDouble

PasswordFailuresTypoInfrequentPassword public_oe property

public DecayingDouble,StopGuessing.DataStructures PasswordFailuresTypoInfrequentPassword
return StopGuessing.DataStructures.DecayingDouble

RecentPotentialTypos public_oe property

public SmallCapacityConstrainedSet RecentPotentialTypos
return SmallCapacityConstrainedSet

RepeatAccountFailuresFrequentPassword public_oe property

public DecayingDouble,StopGuessing.DataStructures RepeatAccountFailuresFrequentPassword
return StopGuessing.DataStructures.DecayingDouble

RepeatAccountFailuresInfrequentPassword public_oe property

public DecayingDouble,StopGuessing.DataStructures RepeatAccountFailuresInfrequentPassword
return StopGuessing.DataStructures.DecayingDouble

RepeatPasswordFailuresNoTypoFrequentPassword public_oe property

public DecayingDouble,StopGuessing.DataStructures RepeatPasswordFailuresNoTypoFrequentPassword
return StopGuessing.DataStructures.DecayingDouble

RepeatPasswordFailuresNoTypoInfrequentPassword public_oe property

public DecayingDouble,StopGuessing.DataStructures RepeatPasswordFailuresNoTypoInfrequentPassword
return StopGuessing.DataStructures.DecayingDouble

RepeatPasswordFailuresTypoFrequentPassword public_oe property

public DecayingDouble,StopGuessing.DataStructures RepeatPasswordFailuresTypoFrequentPassword
return StopGuessing.DataStructures.DecayingDouble

RepeatPasswordFailuresTypoInfrequentPassword public_oe property

public DecayingDouble,StopGuessing.DataStructures RepeatPasswordFailuresTypoInfrequentPassword
return StopGuessing.DataStructures.DecayingDouble

SuccessfulLogins public_oe property

public DecayingDouble,StopGuessing.DataStructures SuccessfulLogins
return StopGuessing.DataStructures.DecayingDouble