Interface AuthenticationProvider.TokenProvider

  • Enclosing class:
    AuthenticationProvider

    public static interface AuthenticationProvider.TokenProvider
    Application callback to request authentication token value.
    • Method Detail

      • acquireToken

        void acquireToken​(java.lang.String ticketKey,
                          AuthenticationProvider.AuthenticationCallback callback)
        Implement this method and pass a fresh authentication token using the callback. This will be called 1 time right after registering and also whenever the token is about to expire.
        Parameters:
        ticketKey - The ticket key that is used to get an updated token.
        callback - callback to provide the result.