C# Класс WebApi2.AuthenticateAttribute

Authenticate Attribute with HMAC
Наследование: System.Web.Http.Filters.ActionFilterAttribute
Показать файл Открыть проект

Открытые методы

Метод Описание
OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void

The on action executing.

Приватные методы

Метод Описание
AddNameValuesToCollection ( string>.List parameterCollection, NameValueCollection nameValueCollection ) : void

The add name values to collection.

AddToMemoryCache ( string signature ) : void

The add to memory cache.

BuildBaseString ( System.Web.Http.Controllers.HttpActionContext actionContext ) : string

The build base string.

BuildParameterCollection ( System.Web.Http.Controllers.HttpActionContext actionContext ) : string>>.List

The build parameter collection.

BuildParameterMessage ( System.Web.Http.Controllers.HttpActionContext actionContext ) : string

The build parameter message.

ConvertObjectAsKeyValuePairList ( object obj, string>.IList querystrings ) : string>>.List

Converts the object as key value pair list.

GetHashedPassword ( string username ) : string

The get hashed password.

GetHttpRequestHeader ( HttpHeaders headers, string headerName ) : string

The get http request header.

IsAuthenticated ( System.Web.Http.Controllers.HttpActionContext actionContext ) : bool

The is authenticated.

IsAuthenticated ( string hashedPassword, string message, string signature ) : bool

The is authenticated.

IsDateValidated ( string timestampString ) : bool

The is date validated

IsSignatureValidated ( string signature ) : bool

The is signature validated.

Описание методов

OnActionExecuting() публичный Метод

The on action executing.
public OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void
actionContext System.Web.Http.Controllers.HttpActionContext /// The action context. ///
Результат void