C# Class vwar.service.host.APIKeyManager

ファイルを表示 Open project: adlnet/3D-Repository Class Usage Examples

Public Methods

Method Description
APIKeyManager ( ) : System
CreateKey ( string email, string usage ) : APIKey
DeleteKey ( string key ) : bool
Dispose ( ) : void
GetKeyByKey ( string key ) : APIKey
GetKeysByUser ( string email ) : List
GetUserByKey ( string key ) : string
KillODBCConnection ( System myConn ) : bool
UpdateKey ( APIKey key ) : bool

Private Methods

Method Description
CheckConnection ( ) : bool
GetNewKey ( string email, string usage ) : string
Hash ( string url ) : string
InsertKey ( APIKey key ) : bool

Method Details

APIKeyManager() public method

public APIKeyManager ( ) : System
return System

CreateKey() public method

public CreateKey ( string email, string usage ) : APIKey
email string
usage string
return APIKey

DeleteKey() public method

public DeleteKey ( string key ) : bool
key string
return bool

Dispose() public method

public Dispose ( ) : void
return void

GetKeyByKey() public method

public GetKeyByKey ( string key ) : APIKey
key string
return APIKey

GetKeysByUser() public method

public GetKeysByUser ( string email ) : List
email string
return List

GetUserByKey() public method

public GetUserByKey ( string key ) : string
key string
return string

KillODBCConnection() public static method

public static KillODBCConnection ( System myConn ) : bool
myConn System
return bool

UpdateKey() public method

public UpdateKey ( APIKey key ) : bool
key APIKey
return bool