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

Inheritance: ITokenProvider
Afficher le fichier Open project: Azure/azure-powershell

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat IAccessToken

GetAccessTokenWithCertificate() public méthode

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
Résultat IAccessToken