C# Class Chaos.Portal.Authentication.Extension.AuthKey

Inheritance: AExtension
显示文件 Open project: CHAOS-Community/CHAOS.Portal.Authentication

Public Methods

Method Description
AuthKey ( IPortalApplication portalApplication, IAuthenticationRepository authenticationRepository ) : System
Create ( string name ) : Data.Model.AuthKey
Delete ( string name ) : ScalarResult
Get ( ) : IList
Login ( string token ) : Data.Session

Private Methods

Method Description
GetAuthenticationKey ( string hashed ) : Data.Model.AuthKey
ToHash ( string secret ) : string

Method Details

AuthKey() public method

public AuthKey ( IPortalApplication portalApplication, IAuthenticationRepository authenticationRepository ) : System
portalApplication IPortalApplication
authenticationRepository IAuthenticationRepository
return System

Create() public method

public Create ( string name ) : Data.Model.AuthKey
name string
return Data.Model.AuthKey

Delete() public method

public Delete ( string name ) : ScalarResult
name string
return ScalarResult

Get() public method

public Get ( ) : IList
return IList

Login() public method

public Login ( string token ) : Data.Session
token string
return Data.Session