Encapsulates authentication information used to log in to a Liberator server.
If your StreamLink application does not use the simple [!:PasswordCredentialsProvider] class supplied with StreamLink .NET, you must define a class that implements the ICredentials interface and a class that implements the ICredentialsProvider interface.
![](../icons/collapse_all.gif)
C# | Visual Basic | Visual C++ |
public interface ICredentials
Public Interface ICredentials
public interface class ICredentials
![](../icons/collapse_all.gif)
![](../icons/collapse_all.gif)
The Credentials property of the ICredentialsProvider implementation must return an instance of the ICredentials implementation. During the login process (after a connection has been established with the Liberator) the ICredentials instance is returned to StreamLink through the Credentials property.
Login Progress | Notes |
---|---|
ConnectionStatus.LoggedOut | Not currently connected or logged in to the Liberator |
ConnectionStatus.Connecting | |
ConnectionStatus.Connected | |
ConnectionStatus.RetrievingCredentials | At this point the getter for the ICredentialsProvider.Credentials property is called. |
ConnectionStatus.CredentialRetrieved | Credentials have been retrieved from the ICredentials instance |
ConnectionStatus.LoggingIn | The ICredentials are being used to login |
ConnectionStatus.LoggedIn | Login success |