C# 클래스 Glipho.OAuth.Providers.NonceDbStore

A database-backed nonce store for OAuth services.
상속: INonceStore
파일 보기 프로젝트 열기: Glipho/oauth-providers 1 사용 예제들

공개 메소드들

메소드 설명
NonceDbStore ( Database nonces ) : System

Initialises a new instance of the NonceDbStore class.

StoreNonce ( string context, string nonce, System.DateTime timestampUtc ) : bool

Stores a given nonce and timestamp.

The nonce must be stored for no less than the maximum time window a message may be processed within before being discarded as an expired message. This maximum message age can be looked up via the P:DotNetOpenAuth.Configuration.MessagingElement.MaximumMessageLifetime property, accessible via the P:DotNetOpenAuth.Configuration.MessagingElement.Configuration property.

비공개 메소드들

메소드 설명
ClearNoncesIfAppropriate ( ) : void

Clears the nonces if appropriate.

NonceDbStore ( ) : System

Initialises static members of the NonceDbStore class.

메소드 상세

NonceDbStore() 공개 메소드

Initialises a new instance of the NonceDbStore class.
public NonceDbStore ( Database nonces ) : System
nonces Database /// The nonces database client. ///
리턴 System

StoreNonce() 공개 메소드

Stores a given nonce and timestamp.
The nonce must be stored for no less than the maximum time window a message may be processed within before being discarded as an expired message. This maximum message age can be looked up via the P:DotNetOpenAuth.Configuration.MessagingElement.MaximumMessageLifetime property, accessible via the P:DotNetOpenAuth.Configuration.MessagingElement.Configuration property.
public StoreNonce ( string context, string nonce, System.DateTime timestampUtc ) : bool
context string The context, or namespace, within which the /// must be unique. /// The context SHOULD be treated as case-sensitive. /// The value will never be null but may be the empty string.
nonce string A series of random characters.
timestampUtc System.DateTime The UTC timestamp that together with the nonce string make it unique /// within the given . /// The timestamp may also be used by the data store to clear out old nonces.
리턴 bool