Class AuthenticationProvider
- java.lang.Object
-
- com.microsoft.appcenter.analytics.AuthenticationProvider
-
public class AuthenticationProvider extends java.lang.ObjectAuthentication provider to associate logs with user identifier.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAuthenticationProvider.AuthenticationCallbackAuthentication callback.static interfaceAuthenticationProvider.TokenProviderApplication callback to request authentication token value.static classAuthenticationProvider.TypeThe supported types of the authentication provider.
-
Constructor Summary
Constructors Constructor Description AuthenticationProvider(AuthenticationProvider.Type type, java.lang.String ticketKey, AuthenticationProvider.TokenProvider tokenProvider)Create a new authentication provider.
-
-
-
Constructor Detail
-
AuthenticationProvider
public AuthenticationProvider(AuthenticationProvider.Type type, java.lang.String ticketKey, AuthenticationProvider.TokenProvider tokenProvider)
Create a new authentication provider.- Parameters:
type- The type for the provider.ticketKey- The ticket key for the provider. This can be any value and does not need to match user identifier. This value will be used in the token provider callback for giving context. The only requirement is that ticket key is different if registering a new provider (for example to switch user). Typical implementations will pass user identifier as a value but it's not a requirement.tokenProvider- The token provider that will be used to get a current authentication token.
-
-