C# Class Sinbadsoft.Lib.UserManagement.VerificationToken

Exibir arquivo Open project: Sinbadsoft/Sinbadsoft.Lib.UserManagement Class Usage Examples

Public Methods

Method Description
Generate ( ) : VerificationToken
Generate ( System.DateTime timestamp ) : VerificationToken
IsFresh ( System.TimeSpan span, System.DateTime now ) : bool
IsFresh ( int days ) : bool
Parse ( string tokenString ) : VerificationToken
ToString ( ) : string

Private Methods

Method Description
VerificationToken ( byte token ) : System

Method Details

Generate() public static method

public static Generate ( ) : VerificationToken
return VerificationToken

Generate() public static method

public static Generate ( System.DateTime timestamp ) : VerificationToken
timestamp System.DateTime
return VerificationToken

IsFresh() public method

public IsFresh ( System.TimeSpan span, System.DateTime now ) : bool
span System.TimeSpan
now System.DateTime
return bool

IsFresh() public method

public IsFresh ( int days ) : bool
days int
return bool

Parse() public static method

public static Parse ( string tokenString ) : VerificationToken
tokenString string
return VerificationToken

ToString() public method

public ToString ( ) : string
return string