Method | Description | |
---|---|---|
Create ( |
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, |
Update an existing token.
|
Method | Description | |
---|---|---|
EnsureIndexesExist ( ) : void |
Ensure the relevant indexes exist.
|
|
GetConsumerStub ( string key ) : |
Get a consumer stub.
|
|
InitialiseClass ( ) : void |
Initialise the class.
|
public Create ( |
||
issuedToken | The details of the token to create. | |
return | string |
public Get ( string token ) : Database.IssuedToken | ||
token | string | The token of the issued token to retrieve. |
return | Database.IssuedToken |
public IssuedTokens ( string connectionString ) : System | ||
connectionString | string | The connection string. |
return | System |
public Remove ( string id ) : bool | ||
id | string | The identifier of the token to remove. |
return | bool |
public Update ( string token, |
||
token | string | The token of the issued token to update. |
updatedToken | Details to update the token with. | |
return | bool |