C# Class ServiceBelt.TokenManager

Inheritance: ITokenManager
Mostra file Open project: jlyonsmith/ToolBelt

Public Methods

Method Description
ToJwtToken ( SecurityToken token, string keyName ) : string
ToSecurityToken ( string jwtToken, string keyName ) : SecurityToken
TokenManager ( string>.IEnumerable secretKeyPairs ) : System

Private Methods

Method Description
PayloadToToken ( object>.Dictionary dict ) : SecurityToken
TokenToPayload ( SecurityToken token ) : object>.Dictionary

Method Details

ToJwtToken() public method

public ToJwtToken ( SecurityToken token, string keyName ) : string
token SecurityToken
keyName string
return string

ToSecurityToken() public method

public ToSecurityToken ( string jwtToken, string keyName ) : SecurityToken
jwtToken string
keyName string
return SecurityToken

TokenManager() public method

public TokenManager ( string>.IEnumerable secretKeyPairs ) : System
secretKeyPairs string>.IEnumerable
return System