StreamLink.NET
AuthenticatingKeyMasterCredentialsProvider Constructor (streamLink, authURLS, headerKeyMapping, credentials, keymasterURI, requestTimeout)
StreamLink.NETCaplin.StreamLink.Authentication.KeyMasterAuthenticatingKeyMasterCredentialsProviderAuthenticatingKeyMasterCredentialsProvider(StreamLink, IList<(Of <(Uri>)>), IDictionary<(Of <(String, String>)>), NetworkCredential, Uri, Int32)
Creates an AuthenticatingKeyMasterCredentialsProvider which performs no polling of any session keep-alive URI.
Declaration Syntax
C#Visual BasicVisual C++
public AuthenticatingKeyMasterCredentialsProvider(
	StreamLink streamLink,
	IList<Uri> authURLS,
	IDictionary<string, string> headerKeyMapping,
	NetworkCredential credentials,
	Uri keymasterURI,
	int requestTimeout
)
Public Sub New ( _
	streamLink As StreamLink, _
	authURLS As IList(Of Uri), _
	headerKeyMapping As IDictionary(Of String, String), _
	credentials As NetworkCredential, _
	keymasterURI As Uri, _
	requestTimeout As Integer _
)
public:
AuthenticatingKeyMasterCredentialsProvider(
	StreamLink^ streamLink, 
	IList<Uri^>^ authURLS, 
	IDictionary<String^, String^>^ headerKeyMapping, 
	NetworkCredential^ credentials, 
	Uri^ keymasterURI, 
	int requestTimeout
)
Parameters
streamLink (StreamLink)
The StreamLink instance to register on as a connection listener. This is required to stop polling when the StreamLink connection is dropped.
authURLS (IList<(Of <(Uri>)>))
An ordered sequence of URLs that should be requested in order to authenticate this instance to the KeyMaster server before requesting the KeyMaster token/page. The URL sequence may typically be a login page followed by a URL to send the response to that login page.
headerKeyMapping (IDictionary<(Of <(String, String>)>))
A mapping table that defines how to add header values found in responses to subsequent requests. This can be used for maintaining sessions - by extracting a session cookie from a specific response header and placing it in subsequent specific request headers. This mapping table should not contain the header values; just mappings from request header names of interest to response header names. For example, a mapping of "Set-Cookie" to "Cookie" will cause the "Set-Cookie" header's value found in a response to be used in subsequent request headers as the "Cookie" header value. A mapping of "Cookie" to "Cookie" will cause the value of the "Cookie" header found in a response to be added to the headers of subsequent requests as the value of the "Cookie" header. If an empty Dictionary is supplied then no header values will be transferred from responses to subsequent requests.
credentials (NetworkCredential)
The credentials to apply to all requests made to KeyMaster URIs.
keymasterURI (Uri)
The URI to use to request a Liberator token. This should include the hostname and port number, e.g "http://myserver.com:8080/keymaster/servlet/StandardKeyMaster"
requestTimeout (Int32)
The timeout in milliseconds applied to all requests made to KeyMaster URIs. A will be thrown if any request takes longer than this period.

Assembly: Caplin.StreamLink (Module: Caplin.StreamLink) Version: 5.0.23.0 (5.0.23.0)