C# Class Microsoft.WindowsAzure.Commands.Test.Utilities.Common.FakeAccessTokenProvider

Inheritance: ITokenProvider
Exibir arquivo Open project: Azure/azure-powershell

Public Methods

Method Description
FakeAccessTokenProvider ( string token ) : System.Security
FakeAccessTokenProvider ( string token, string userId ) : System.Security
GetAccessToken ( AdalConfiguration config, ShowDialog promptBehavior, string userId, SecureString password, AzureAccount credentialType ) : IAccessToken
GetAccessTokenWithCertificate ( AdalConfiguration config, string principalId, string certificateThumbprint, AzureAccount credentialType ) : IAccessToken

Method Details

FakeAccessTokenProvider() public method

public FakeAccessTokenProvider ( string token ) : System.Security
token string
return System.Security

FakeAccessTokenProvider() public method

public FakeAccessTokenProvider ( string token, string userId ) : System.Security
token string
userId string
return System.Security

GetAccessToken() public method

public GetAccessToken ( AdalConfiguration config, ShowDialog promptBehavior, string userId, SecureString password, AzureAccount credentialType ) : IAccessToken
config AdalConfiguration
promptBehavior ShowDialog
userId string
password SecureString
credentialType AzureAccount
return IAccessToken

GetAccessTokenWithCertificate() public method

public GetAccessTokenWithCertificate ( AdalConfiguration config, string principalId, string certificateThumbprint, AzureAccount credentialType ) : IAccessToken
config AdalConfiguration
principalId string
certificateThumbprint string
credentialType AzureAccount
return IAccessToken