Class AuthMessageProvider
java.lang.Object
com.sportradar.livedata.sdk.proto.livescout.auth.AuthMessageProvider
- Direct Known Subclasses:
CredentialsAuthMessageProvider,TokenAuthMessageProvider
Represents a class used to build authentication lifecycle requests to be sent to the betradar feed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LiveScoutOutgoingMessageFactoryprotected final AuthSettings -
Constructor Summary
ConstructorsConstructorDescriptionAuthMessageProvider(LiveScoutOutgoingMessageFactory factory, AuthSettings authSettings) -
Method Summary
Modifier and TypeMethodDescriptionabstract OutgoingMessageConstructs and returns aOutgoingMessagerepresenting a log-in request.Constructs and returns aOutgoingMessagerepresenting a log-out request.
-
Field Details
-
factory
-
settings
-
-
Constructor Details
-
AuthMessageProvider
- Parameters:
factory- The factory used to build requests send to the feedauthSettings- TheAuthSettingsinstance containing the application's settings concerning the authentication
-
-
Method Details
-
buildLoginRequest
Constructs and returns aOutgoingMessagerepresenting a log-in request.- Returns:
- a
OutgoingMessagerepresenting a log-in request.
-
buildLogOutRequest
Constructs and returns aOutgoingMessagerepresenting a log-out request.- Returns:
- a
OutgoingMessagerepresenting a log-out request or a null reference if protocol associate with the current factory does not support log-out
-