C# 클래스 Glipho.OAuth.Providers.Database.Mongo.IssuedTokens

MongoDB implementation of the IIssuedTokens database.
상속: MongoDbClient, IIssuedTokens
파일 보기 프로젝트 열기: Glipho/oauth-providers

공개 메소드들

메소드 설명
Create ( Database issuedToken ) : string

Create a new token.

Get ( string token ) : Database.IssuedToken

Retrieve a consumer from the database.

IssuedTokens ( ) : System

Initialises a new instance of the IssuedTokens class.

IssuedTokens ( string connectionString ) : System

Initialises a new instance of the IssuedTokens class.

Remove ( string id ) : bool

Remove an issued token.

Update ( string token, Database updatedToken ) : bool

Update an existing token.

비공개 메소드들

메소드 설명
EnsureIndexesExist ( ) : void

Ensure the relevant indexes exist.

GetConsumerStub ( string key ) : ConsumerStub

Get a consumer stub.

InitialiseClass ( ) : void

Initialise the class.

메소드 상세

Create() 공개 메소드

Create a new token.
Thrown if a parameter is null. Thrown if an error occurs while executing the requested command.
public Create ( Database issuedToken ) : string
issuedToken MongoDB.Driver.Database The details of the token to create.
리턴 string

Get() 공개 메소드

Retrieve a consumer from the database.
Thrown if a parameter is not valid. Thrown if an error occurs while executing the requested command.
public Get ( string token ) : Database.IssuedToken
token string The token of the issued token to retrieve.
리턴 Database.IssuedToken

IssuedTokens() 공개 메소드

Initialises a new instance of the IssuedTokens class.
public IssuedTokens ( ) : System
리턴 System

IssuedTokens() 공개 메소드

Initialises a new instance of the IssuedTokens class.
public IssuedTokens ( string connectionString ) : System
connectionString string The connection string.
리턴 System

Remove() 공개 메소드

Remove an issued token.
Thrown if an error occurs while executing the requested command.
public Remove ( string id ) : bool
id string The identifier of the token to remove.
리턴 bool

Update() 공개 메소드

Update an existing token.
Thrown if a parameter is not valid. Thrown if a parameter is null. Thrown if an error occurs while executing the requested command.
public Update ( string token, Database updatedToken ) : bool
token string The token of the issued token to update.
updatedToken MongoDB.Driver.Database Details to update the token with.
리턴 bool