C# Class RepositoryController.RequireApiKeyAttribute

Inheritance: RequireAuthorizationAttribute
ファイルを表示 Open project: matthewschrager/RepositoryController

Public Methods

Method Description
OnAuthorization ( System actionContext ) : void
RequireApiKeyAttribute ( bool enabled, String headerName = "ApiKey" ) : System

Protected Methods

Method Description
RequireApiKeyAttribute ( String headerName = "ApiKey" ) : System
ValidateApiKey ( String apiKey ) : bool

Method Details

OnAuthorization() public method

public OnAuthorization ( System actionContext ) : void
actionContext System
return void

RequireApiKeyAttribute() protected method

protected RequireApiKeyAttribute ( String headerName = "ApiKey" ) : System
headerName String
return System

RequireApiKeyAttribute() public method

public RequireApiKeyAttribute ( bool enabled, String headerName = "ApiKey" ) : System
enabled bool
headerName String
return System

ValidateApiKey() protected abstract method

protected abstract ValidateApiKey ( String apiKey ) : bool
apiKey String
return bool