C# | Visual Basic | Visual C++ |
public class AuthenticatingKeyMasterCredentialsProvider : KeyMasterCredentialsProvider, IConnectionListener
Public Class AuthenticatingKeyMasterCredentialsProvider _ Inherits KeyMasterCredentialsProvider _ Implements IConnectionListener
public ref class AuthenticatingKeyMasterCredentialsProvider : public KeyMasterCredentialsProvider, IConnectionListener
All Members | Constructors | Methods | |||
Icon | Member | Description |
---|---|---|
AuthenticatingKeyMasterCredentialsProvider(StreamLink, IList<(Of <(Uri>)>), IDictionary<(Of <(String, String>)>), NetworkCredential, Uri, Uri, Int32, Int64) |
Creates an AuthenticatingKeyMasterCredentialsProvider which performs polling of a session keep-alive URI and uses a specified
request timeout.
| |
AuthenticatingKeyMasterCredentialsProvider(StreamLink, IList<(Of <(Uri>)>), IDictionary<(Of <(String, String>)>), NetworkCredential, Uri, Uri, Int64) |
Creates an AuthenticatingKeyMasterCredentialsProvider which performs polling of a session keep-alive URI and uses the default
request timeout.
| |
AuthenticatingKeyMasterCredentialsProvider(StreamLink, IList<(Of <(Uri>)>), IDictionary<(Of <(String, String>)>), NetworkCredential, Uri, Int32) |
Creates an AuthenticatingKeyMasterCredentialsProvider which performs no polling of any session keep-alive URI.
| |
AuthenticatingKeyMasterCredentialsProvider(StreamLink, IList<(Of <(Uri>)>), IDictionary<(Of <(String, String>)>), NetworkCredential, Uri) |
Creates an AuthenticatingKeyMasterCredentialsProvider which performs no polling of any session keep-alive URI and uses the
default request timeout.
| |
Equals(Object) | (Inherited from Object.) | |
Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
ToString()()() | (Inherited from Object.) |
In a typical setup, the Keymaster web application sits behind a login page or other authentication mechanism. The user logs into the Keymaster using the credentials required by the authentication mechanism. Once logged in, the user is able to access KeyMaster tokens. If required, the user may obtain further tokens from the KeyMaster, so long as they remain logged in (that is, so long as the the associated HTTP session remains valid).
To keep a HTTP session alive, StreamLink.NET reads HTTP session-cookies from HTTP responses and adds them to subsequent
requests that go to the same server. Session-cookie are transferred (between HTTP server and HTTP client) using HTTP headers. To manage the session-cookie accross many requests and
responses, AuthenticatingKeyMasterCredentialsProvider must be told which HTTP response header to find the session-cookie in and in which HTTP request
header to place the session-cookie in subsequent requests. This mapping of response header name to request header name is configured
in the headerKeyMapping
StreamLink for Silverlight will allow the browser to handle session-cookies and headers in order to keep the session alive.
If the additional polling requests that are typically required for HTTP session keep-alive are not desired or not required (because the
user's session will not time out) use the overloaded constructors that does not have a pollingInterval
0
pollingInterval
If the product in use is StreamLink for Silverlight then the application server that hosts KeyMaster must provide a valid clientaccesspolicy.xml/crossdomain.xml file in order to satisfy Silverlight security restrictions.
The constructors require an ICredentials object to be supplied with a non-null username. This corresponds to the
username that will be used to login to the Liberator and as such is mandatory. Should your deployment architecture have
KeyMaster accessible only via another webservice and that webservice sets the username on the KeyMaster request, you
will still need to supply a set of credentials to the constructor: new Credentials("DummyUser","");
Object | ||
KeyMasterCredentialsProvider | ||
AuthenticatingKeyMasterCredentialsProvider |