C# Class Keyczar.TimeoutVerifier

Verifies signatures with an expiration date & time
Inheritance: Keyczar
Mostrar archivo Open project: jbtule/keyczar-dotnet Class Usage Examples

Public Properties

Property Type Description
TimeoutLength int

Public Methods

Method Description
TimeoutVerifier ( IKeySet keySet, Func currentDateTime = null ) : System

Initializes a new instance of the TimeoutVerifier class.

TimeoutVerifier ( string keySetLocation, Func currentDateTime = null ) : System

Initializes a new instance of the TimeoutVerifier class.

Verify ( byte rawData, byte signature ) : bool

Verifies the specified raw data.

Verify ( string rawData, WebBase64 signature ) : bool

Verifies the specified raw data.

Protected Methods

Method Description
FromDateTime ( System.DateTime date ) : long

Gets binary format of the date time.

Private Methods

Method Description
Dispose ( bool disposing ) : void
Verify ( Stream input, byte signature, long inputLength = -1 ) : bool

Method Details

FromDateTime() protected static method

Gets binary format of the date time.
protected static FromDateTime ( System.DateTime date ) : long
date System.DateTime The date.
return long

TimeoutVerifier() public method

Initializes a new instance of the TimeoutVerifier class.
public TimeoutVerifier ( IKeySet keySet, Func currentDateTime = null ) : System
keySet IKeySet The key set.
currentDateTime Func The current date time provider.
return System

TimeoutVerifier() public method

Initializes a new instance of the TimeoutVerifier class.
public TimeoutVerifier ( string keySetLocation, Func currentDateTime = null ) : System
keySetLocation string The keyset location.
currentDateTime Func The current date time providers.
return System

Verify() public method

Verifies the specified raw data.
public Verify ( byte rawData, byte signature ) : bool
rawData byte The raw data.
signature byte The signature.
return bool

Verify() public method

Verifies the specified raw data.
public Verify ( string rawData, WebBase64 signature ) : bool
rawData string The raw data.
signature WebBase64 The signature.
return bool

Property Details

TimeoutLength public_oe static_oe property

Binary length of expiration in signature
public static int TimeoutLength
return int