Interface CredentialsReceiver


public interface CredentialsReceiver

Interface that your custom implementation of CredentialsProvider must call to provide credential information to StreamLink.

Your implementation of CredentialsProvider will be called when a set of Credentials is required. Your implementation will be passed an instance of this interface which you should use to callback with either a set of credentials or an error message.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Call this method to indicate that an error occurred when retrieving a set of credentials.
    void
    Call this method to provide a set of Credentials to StreamLink.
  • Method Details

    • provideCredentials

      void provideCredentials(Credentials credentials)

      Call this method to provide a set of Credentials to StreamLink.

      Parameters:
      credentials - The credentials that should be used to login to the Liberator server.
    • credentialsUnavailable

      void credentialsUnavailable(String reason)

      Call this method to indicate that an error occurred when retrieving a set of credentials.

      Parameters:
      reason - A textual error message that will be recorded within the StreamLink logs.