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.
Interface for OAuth authorization classes
- Since:
- 18650
-
Method Summary
Modifier and TypeMethodDescriptionvoidauthorize(IOAuthParameters parameters, Consumer<Optional<IOAuthToken>> consumer, Enum<?>... scopes) Perform the authorization dance
-
Method Details
-
authorize
void authorize(IOAuthParameters parameters, Consumer<Optional<IOAuthToken>> consumer, Enum<?>... scopes) Perform the authorization dance- Parameters:
parameters- The OAuth parametersconsumer- The callback for the generated tokenscopes- The scopes to ask for
-