Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Server.Client Namespace / CachedCredentialsManager Class / GetCredentials(WebChannel,Boolean,Guid,String,Boolean) Method
The web channel representing the endpoint that the credentials are for
True if an API key was used to originally set up the connection
The owner Id to specify to the server (for example repository Id)
The name of the key container to retrieve the private key from
True to use the machine store instead of the user store for the digital certificate

In This Topic
    GetCredentials(WebChannel,Boolean,Guid,String,Boolean) Method
    In This Topic
    Get credentials for the specified URL target and repository information
    Syntax
    'Declaration
     
    
    Public Shared Function GetCredentials( _
       ByVal targetChannel As WebChannel, _
       ByVal useApiKey As Boolean, _
       ByVal repositoryId As Guid, _
       ByVal keyContainerName As String, _
       ByVal useMachineStore As Boolean _
    ) As IWebAuthenticationProvider
    public static IWebAuthenticationProvider GetCredentials( 
       WebChannel targetChannel,
       bool useApiKey,
       Guid repositoryId,
       string keyContainerName,
       bool useMachineStore
    )

    Parameters

    targetChannel
    The web channel representing the endpoint that the credentials are for
    useApiKey
    True if an API key was used to originally set up the connection
    repositoryId
    The owner Id to specify to the server (for example repository Id)
    keyContainerName
    The name of the key container to retrieve the private key from
    useMachineStore
    True to use the machine store instead of the user store for the digital certificate
    Remarks
    If existing credentials are available they will be provided, otherwise a new credentials object will be created and returned. This method is Multithread safe.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also