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

Implementation of the IConsumers interface.
상속: IConsumers
파일 보기 프로젝트 열기: Glipho/oauth-providers

공개 메소드들

메소드 설명
Consumers ( Database consumers ) : System

Initialises a new instance of the Consumers class.

Create ( string name ) : Consumer

Create a new consumer.

Create ( string name, Uri callback ) : Consumer

Create a new Consumer with a callback URL.

Create ( string name, Uri callback, X509Certificate2 certificate ) : Consumer

Create a new Consumer with a callback URL and a X509 certificate.

Create ( string name, X509Certificate2 certificate ) : Consumer

Create a new Consumer with a X509 certificate.

Get ( string key ) : Consumer

Retrieve a Consumer.

List ( int offset, int limit ) : IList

List all consumers by name.

If there are no results with the given range, an empty list should be returned.

비공개 메소드들

메소드 설명
GenerateConsumerSecret ( int binaryLength ) : string

Gets a cryptographically strong random sequence of values.

GetCryptoRandomData ( int length ) : byte[]

Gets a cryptographically strong random sequence of values.

메소드 상세

Consumers() 공개 메소드

Initialises a new instance of the Consumers class.
public Consumers ( Database consumers ) : System
consumers Database The consumers database client.
리턴 System

Create() 공개 메소드

Create a new consumer.
Thrown if a parameter is not valid. Thrown if an error occurs while executing the requested command.
public Create ( string name ) : Consumer
name string The name of the to create.
리턴 Consumer

Create() 공개 메소드

Create a new Consumer with a callback URL.
Thrown if a parameter is not valid. Thrown if an error occurs while executing the requested command.
public Create ( string name, Uri callback ) : Consumer
name string The name of the to create.
callback System.Uri The callback URL of the .
리턴 Consumer

Create() 공개 메소드

Create a new Consumer with a callback URL and a X509 certificate.
Thrown if a parameter is not valid. Thrown if an error occurs while executing the requested command.
public Create ( string name, Uri callback, X509Certificate2 certificate ) : Consumer
name string The name of the to create.
callback System.Uri The callback URL of the .
certificate System.Security.Cryptography.X509Certificates.X509Certificate2 The X509 certificate for the user.
리턴 Consumer

Create() 공개 메소드

Create a new Consumer with a X509 certificate.
Thrown if a parameter is not valid. Thrown if an error occurs while executing the requested command.
public Create ( string name, X509Certificate2 certificate ) : Consumer
name string The name of the to create.
certificate System.Security.Cryptography.X509Certificates.X509Certificate2 The X509 certificate for the user.
리턴 Consumer

Get() 공개 메소드

Retrieve a Consumer.
Thrown if a parameter is not valid. Thrown if an error occurs while executing the requested command.
public Get ( string key ) : Consumer
key string The key of the to return.
리턴 Consumer

List() 공개 메소드

List all consumers by name.

If there are no results with the given range, an empty list should be returned.

Thrown if a parameter is outside of a permitted range. Thrown if an error occurs while executing the requested command.
public List ( int offset, int limit ) : IList
offset int The amount to offset the results by. Minimum of 0.
limit int The maximum number of results to return. Minimum of 0 and maximum of 100.
리턴 IList