Interface AzureActiveDirectoryTokenProvider.AuthenticationCallback

  • Enclosing class:
    AzureActiveDirectoryTokenProvider
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface AzureActiveDirectoryTokenProvider.AuthenticationCallback
    • Method Detail

      • acquireTokenAsync

        CompletableFuture<String> acquireTokenAsync​(String audience,
                                                    String authority,
                                                    Object state)
        A user defined method for obtaining an access token.
        Parameters:
        audience - The target resource that the access token will be granted for.
        authority - The resource that will validate the the access token.
        state - Parameter that may be used as part of the custom acquireToken process.
        Returns:
        A CompletableFuture which returns a valid security token.