C# Class WopiHost.FileSystemProvider.WopiSecurityHandler

Inheritance: IWopiSecurityHandler
Show file Open project: petrsvihlik/WopiHost

Private Properties

Property Type Description
GetBase64Length int
GetHash string
GetSalt string

Public Methods

Method Description
GenerateAccessToken ( string value ) : string
ValidateAccessToken ( string value, string token ) : bool
WopiSecurityHandler ( string key = null ) : System

Private Methods

Method Description
GetBase64Length ( int inputLength ) : int
GetHash ( string value, string salt ) : string
GetSalt ( ) : string

Method Details

GenerateAccessToken() public method

public GenerateAccessToken ( string value ) : string
value string
return string

ValidateAccessToken() public method

public ValidateAccessToken ( string value, string token ) : bool
value string
token string
return bool

WopiSecurityHandler() public method

public WopiSecurityHandler ( string key = null ) : System
key string
return System