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

Inheritance: ITokenProvider
Mostra file Open project: Azure/azure-powershell

Public Methods

Method Description
GetAccessToken ( AdalConfiguration config, ShowDialog promptBehavior, string userId, SecureString password, AzureAccount credentialType ) : IAccessToken
GetAccessTokenWithCertificate ( AdalConfiguration config, string principalId, string certificateThumbprint, AzureAccount credentialType ) : IAccessToken
MockAccessTokenProvider ( string token ) : Microsoft.Azure.Commands.Common.Authentication
MockAccessTokenProvider ( string token, string userId ) : Microsoft.Azure.Commands.Common.Authentication
MockAccessTokenProvider ( string token ) : System.Security
MockAccessTokenProvider ( string token, string userId ) : System.Security

Private Methods

Method Description
ITokenProvider ( AdalConfiguration config, string principalId, string certificateThumbprint, AzureAccount credentialType ) : IAccessToken

Method Details

GetAccessToken() public method

public GetAccessToken ( AdalConfiguration config, ShowDialog promptBehavior, string userId, SecureString password, AzureAccount credentialType ) : IAccessToken
config Microsoft.Azure.Commands.Common.Authentication.AdalConfiguration
promptBehavior ShowDialog
userId string
password System.Security.SecureString
credentialType Microsoft.Azure.Commands.Common.Authentication.Models.AzureAccount
return IAccessToken

GetAccessTokenWithCertificate() public method

public GetAccessTokenWithCertificate ( AdalConfiguration config, string principalId, string certificateThumbprint, AzureAccount credentialType ) : IAccessToken
config Microsoft.Azure.Commands.Common.Authentication.AdalConfiguration
principalId string
certificateThumbprint string
credentialType Microsoft.Azure.Commands.Common.Authentication.Models.AzureAccount
return IAccessToken

MockAccessTokenProvider() public method

public MockAccessTokenProvider ( string token ) : Microsoft.Azure.Commands.Common.Authentication
token string
return Microsoft.Azure.Commands.Common.Authentication

MockAccessTokenProvider() public method

public MockAccessTokenProvider ( string token, string userId ) : Microsoft.Azure.Commands.Common.Authentication
token string
userId string
return Microsoft.Azure.Commands.Common.Authentication

MockAccessTokenProvider() public method

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

MockAccessTokenProvider() public method

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