C# Class Simulator.SimIpHistory

Show file 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 property

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

AccountFailuresInfrequentPassword public property

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

PasswordFailuresNoTypoFrequentPassword public property

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

PasswordFailuresNoTypoInfrequentPassword public property

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

PasswordFailuresTypoFrequentPassword public property

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

PasswordFailuresTypoInfrequentPassword public property

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

RecentPotentialTypos public property

public SmallCapacityConstrainedSet RecentPotentialTypos
return SmallCapacityConstrainedSet

RepeatAccountFailuresFrequentPassword public property

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

RepeatAccountFailuresInfrequentPassword public property

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

RepeatPasswordFailuresNoTypoFrequentPassword public property

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

RepeatPasswordFailuresNoTypoInfrequentPassword public property

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

RepeatPasswordFailuresTypoFrequentPassword public property

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

RepeatPasswordFailuresTypoInfrequentPassword public property

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

SuccessfulLogins public property

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