C# Class Mvc5StarterKit.IzendaBoundary.IzendaTokenAuthorization

Exibir arquivo Open project: Izenda7Series/Mvc5_DM1_StarterKit

Public Methods

Method Description
DecryptIzendaAuthenticationMessage ( string encryptedMessage ) : UserInfo
GetIzendaAdminToken ( ) : string

Get the token for IzendaAdmin user, to communicate with Izenda to process when user has not been logged in.

GetToken ( UserInfo user ) : string

Generate token from UserInfo. Userinfo will be encrypted before sending to Izenda.

GetUserInfo ( string token ) : UserInfo

Get User info from token. Token, which recieved from Izenda, will be decrypted to get user info.

Private Methods

Method Description
ConvertPemToXmlFormat ( string privateKey ) : System.Security.Cryptography.RSAParameters
GetIntegerSize ( System.IO.BinaryReader binr ) : int

Method Details

DecryptIzendaAuthenticationMessage() public static method

public static DecryptIzendaAuthenticationMessage ( string encryptedMessage ) : UserInfo
encryptedMessage string
return UserInfo

GetIzendaAdminToken() public static method

Get the token for IzendaAdmin user, to communicate with Izenda to process when user has not been logged in.
public static GetIzendaAdminToken ( ) : string
return string

GetToken() public static method

Generate token from UserInfo. Userinfo will be encrypted before sending to Izenda.
public static GetToken ( UserInfo user ) : string
user UserInfo
return string

GetUserInfo() public static method

Get User info from token. Token, which recieved from Izenda, will be decrypted to get user info.
public static GetUserInfo ( string token ) : UserInfo
token string
return UserInfo