Interface IOAuthAuthorization

  • All Known Implementing Classes:
    OAuth20Authorization
    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 interface IOAuthAuthorization
    Interface for OAuth authorization classes
    Since:
    18650
    • Method Detail

      • authorize

        void authorize​(IOAuthParameters parameters,
                       java.util.function.Consumer<java.util.Optional<IOAuthToken>> consumer,
                       java.lang.Enum<?>... scopes)
        Perform the authorization dance
        Parameters:
        parameters - The OAuth parameters
        consumer - The callback for the generated token
        scopes - The scopes to ask for