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 Summary
Fields Modifier and Type Field Description protected LiveScoutOutgoingMessageFactory
factory
protected AuthSettings
settings
-
Constructor Summary
Constructors Constructor Description AuthMessageProvider(LiveScoutOutgoingMessageFactory factory, AuthSettings authSettings)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract OutgoingMessage
buildLoginRequest()
Constructs and returns aOutgoingMessage
representing a log-in request.OutgoingMessage
buildLogOutRequest()
Constructs and returns aOutgoingMessage
representing a log-out request.
-
-
-
Field Detail
-
factory
protected final LiveScoutOutgoingMessageFactory factory
-
settings
protected final AuthSettings settings
-
-
Constructor Detail
-
AuthMessageProvider
public AuthMessageProvider(LiveScoutOutgoingMessageFactory factory, AuthSettings authSettings)
- Parameters:
factory
- The factory used to build requests send to the feedauthSettings
- TheAuthSettings
instance containing the application's settings concerning the authentication
-
-
Method Detail
-
buildLoginRequest
public abstract OutgoingMessage buildLoginRequest()
Constructs and returns aOutgoingMessage
representing a log-in request.- Returns:
- a
OutgoingMessage
representing a log-in request.
-
buildLogOutRequest
public OutgoingMessage buildLogOutRequest()
Constructs and returns aOutgoingMessage
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
-
-