C# Class RepositoryController.RequireApiKeyAttribute

Inheritance: RequireAuthorizationAttribute
Afficher le fichier Open project: matthewschrager/RepositoryController

Méthodes publiques

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

Méthodes protégées

Méthode Description
RequireApiKeyAttribute ( String headerName = "ApiKey" ) : System
ValidateApiKey ( String apiKey ) : bool

Method Details

OnAuthorization() public méthode

public OnAuthorization ( System actionContext ) : void
actionContext System
Résultat void

RequireApiKeyAttribute() protected méthode

protected RequireApiKeyAttribute ( String headerName = "ApiKey" ) : System
headerName String
Résultat System

RequireApiKeyAttribute() public méthode

public RequireApiKeyAttribute ( bool enabled, String headerName = "ApiKey" ) : System
enabled bool
headerName String
Résultat System

ValidateApiKey() protected abstract méthode

protected abstract ValidateApiKey ( String apiKey ) : bool
apiKey String
Résultat bool