C# Class Keyczar.TimeoutVerifier

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

Méthodes publiques

Свойство Type Description
TimeoutLength int

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
FromDateTime ( System.DateTime date ) : long

Gets binary format of the date time.

Private Methods

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

Method Details

FromDateTime() protected static méthode

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

TimeoutVerifier() public méthode

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.
Résultat System

TimeoutVerifier() public méthode

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.
Résultat System

Verify() public méthode

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

Verify() public méthode

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

Property Details

TimeoutLength public_oe static_oe property

Binary length of expiration in signature
public static int TimeoutLength
Résultat int