C# Class SiaqodbCloudService.Filters.AuthenticateAttribute

Inheritance: System.Web.Http.Filters.ActionFilterAttribute
Exibir arquivo Open project: Dotissi/SiaqodbCloud-Service

Public Methods

Method Description
AuthenticateAttribute ( ) : System
GetHttpRequestAccessKeyIdHeader ( HttpHeaders headers ) : string
GetHttpRequestSignatureHeader ( HttpHeaders headers ) : string
GetHttpRequestTimestampHeader ( HttpHeaders headers ) : string
OnActionExecutingAsync ( System.Web.Http.Controllers.HttpActionContext actionContext, CancellationToken cancellationToken ) : Task

Private Methods

Method Description
AddNameValuesToCollection ( string>.List parameterCollection, NameValueCollection nameValueCollection ) : void
AddToMemoryCache ( string signature ) : void
AreSignaturesEqual ( string hashedPassword, string message, string signature ) : bool
BuildBaseString ( System.Web.Http.Controllers.HttpActionContext actionContext ) : Task
BuildParameterCollection ( System.Web.Http.Controllers.HttpActionContext actionContext ) : string>>>.Task
BuildParameterMessage ( System.Web.Http.Controllers.HttpActionContext actionContext ) : Task
ComputeHash ( string hashedPassword, string message ) : string
GetHttpRequestHeader ( HttpHeaders headers, string headerName ) : string
IsAuthenticated ( System.Web.Http.Controllers.HttpActionContext actionContext ) : Task
IsDateValidated ( string timestampString ) : bool
IsSignatureValidated ( string signature ) : bool

Method Details

AuthenticateAttribute() public method

public AuthenticateAttribute ( ) : System
return System

GetHttpRequestAccessKeyIdHeader() public method

public GetHttpRequestAccessKeyIdHeader ( HttpHeaders headers ) : string
headers HttpHeaders
return string

GetHttpRequestSignatureHeader() public method

public GetHttpRequestSignatureHeader ( HttpHeaders headers ) : string
headers HttpHeaders
return string

GetHttpRequestTimestampHeader() public method

public GetHttpRequestTimestampHeader ( HttpHeaders headers ) : string
headers HttpHeaders
return string

OnActionExecutingAsync() public method

public OnActionExecutingAsync ( System.Web.Http.Controllers.HttpActionContext actionContext, CancellationToken cancellationToken ) : Task
actionContext System.Web.Http.Controllers.HttpActionContext
cancellationToken System.Threading.CancellationToken
return Task