Class AuthMessageProvider

java.lang.Object
com.sportradar.livedata.sdk.proto.livescout.auth.AuthMessageProvider
Direct Known Subclasses:
CredentialsAuthMessageProvider, TokenAuthMessageProvider

public abstract class AuthMessageProvider extends Object
Represents a class used to build authentication lifecycle requests to be sent to the betradar feed.
  • Field Details

  • Constructor Details

    • AuthMessageProvider

      public AuthMessageProvider(LiveScoutOutgoingMessageFactory factory, AuthSettings authSettings)
      Parameters:
      factory - The factory used to build requests send to the feed
      authSettings - The AuthSettings instance containing the application's settings concerning the authentication
  • Method Details

    • buildLoginRequest

      public abstract OutgoingMessage buildLoginRequest()
      Constructs and returns a OutgoingMessage representing a log-in request.
      Returns:
      a OutgoingMessage representing a log-in request.
    • buildLogOutRequest

      public OutgoingMessage buildLogOutRequest()
      Constructs and returns a OutgoingMessage representing a log-out request.
      Returns:
      a OutgoingMessage representing a log-out request or a null reference if protocol associate with the current factory does not support log-out