UserInfo - a type for authenticated user info objectpublic static interface BasicAuthHttpServiceFilter.CredentialsVerifier<UserInfo>
extends BiFunction<String,String,Single<UserInfo>>, AsyncCloseable, ExecutionStrategyInfluencer<HttpExecutionStrategy>
user-id and password, parsed from the 'Basic' HTTP Authentication Scheme credentials.
This is an AutoCloseable BiFunction, which accepts user-id and password pair and
returns Single<UserInfo> with a user info object of authenticated user. In case of denied
access Single must fail with AuthenticationException.
| Modifier and Type | Method and Description |
|---|---|
Single<UserInfo> |
apply(String userId,
String password)
Verifies
user-id and password, parsed from the 'Basic' HTTP Authentication Scheme
credentials. |
default HttpExecutionStrategy |
requiredOffloads() |
Single<UserInfo> apply(String userId, String password)
user-id and password, parsed from the 'Basic' HTTP Authentication Scheme
credentials.apply in interface BiFunction<String,String,Single<UserInfo>>userId - a user-id parsed from the authentication tokenpassword - a password parsed from the authentication tokenSingle<UserInfo> with a user info object of authenticated user or
Single failed with an AuthenticationException if access was denieddefault HttpExecutionStrategy requiredOffloads()
requiredOffloads in interface ExecutionStrategyInfluencer<HttpExecutionStrategy>