Package com.caplin.streamlink
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 ofCredentials
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
credentialsUnavailable(java.lang.String reason)
Call this method to indicate that an error occurred when retrieving a set of credentials.void
provideCredentials(Credentials credentials)
Call this method to provide a set ofCredentials
to StreamLink.
-
-
-
Method Detail
-
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(java.lang.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.
-
-