Class AuthenticationProvider


  • public class AuthenticationProvider
    extends java.lang.Object
    Authentication provider to associate logs with user identifier.
    • 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.