C# 클래스 NuGet.VisualStudio.VisualStudioCredentialProvider

상속: ICredentialProvider
파일 보기 프로젝트 열기: monoman/NugetCracker

공개 메소드들

메소드 설명
GetCredentials ( Uri uri, IWebProxy proxy, CredentialType credentialType ) : ICredentials

Returns an ICredentials instance that the consumer would need in order to properly authenticate to the given Uri.

VisualStudioCredentialProvider ( ) : System
VisualStudioCredentialProvider ( IVsWebProxy webProxyService ) : System

보호된 메소드들

메소드 설명
InitializeCredentialProxy ( Uri uri, IWebProxy originalProxy ) : void

THIS IS KINDA HACKISH: we are forcing the static property just so that the VsWebProxy can pick up the Uri. This method is responsible for initializing the WebRequest.DefaultWebProxy to the correct Uri based on the type of request that credentials are needed for before we prompt for credentials because the VsWebProxy uses that static property as a way to display the Uri that we are connecting to.

비공개 메소드들

메소드 설명
PromptForCredentials ( Uri uri ) : ICredentials

This method is responsible for retrieving either cached credentials or forcing a prompt if we need the user to give us new credentials.

메소드 상세

GetCredentials() 공개 메소드

Returns an ICredentials instance that the consumer would need in order to properly authenticate to the given Uri.
public GetCredentials ( Uri uri, IWebProxy proxy, CredentialType credentialType ) : ICredentials
uri System.Uri
proxy IWebProxy
credentialType CredentialType
리턴 ICredentials

InitializeCredentialProxy() 보호된 추상적인 메소드

THIS IS KINDA HACKISH: we are forcing the static property just so that the VsWebProxy can pick up the Uri. This method is responsible for initializing the WebRequest.DefaultWebProxy to the correct Uri based on the type of request that credentials are needed for before we prompt for credentials because the VsWebProxy uses that static property as a way to display the Uri that we are connecting to.
protected abstract InitializeCredentialProxy ( Uri uri, IWebProxy originalProxy ) : void
uri System.Uri
originalProxy IWebProxy
리턴 void

VisualStudioCredentialProvider() 공개 메소드

public VisualStudioCredentialProvider ( ) : System
리턴 System

VisualStudioCredentialProvider() 공개 메소드

public VisualStudioCredentialProvider ( IVsWebProxy webProxyService ) : System
webProxyService IVsWebProxy
리턴 System