C# Class Microsoft.Azure.Commands.Common.Authentication.ServicePrincipalTokenProvider

Inheritance: ITokenProvider
ファイルを表示 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 clientId, string certificateThumbprint, AzureAccount credentialType ) : IAccessToken

Private Methods

Method Description
AcquireTokenWithCertificate ( AdalConfiguration config, string appId, string thumbprint ) : AuthenticationResult
AcquireTokenWithSecret ( AdalConfiguration config, string appId, SecureString appKey ) : AuthenticationResult
GetContext ( AdalConfiguration config ) : Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext
LoadAppKey ( string appId, string tenantId ) : SecureString
RenewWithCertificate ( AdalConfiguration config, string appId, string thumbprint ) : AuthenticationResult
RenewWithSecret ( AdalConfiguration config, string appId ) : AuthenticationResult
StoreAppKey ( string appId, string tenantId, SecureString appKey ) : void

Method Details

GetAccessToken() public method

public GetAccessToken ( AdalConfiguration config, ShowDialog promptBehavior, string userId, SecureString password, AzureAccount credentialType ) : IAccessToken
config 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 clientId, string certificateThumbprint, AzureAccount credentialType ) : IAccessToken
config AdalConfiguration
clientId string
certificateThumbprint string
credentialType Microsoft.Azure.Commands.Common.Authentication.Models.AzureAccount
return IAccessToken