UserInfo
- a type for authenticated user info objectpublic static interface BasicAuthHttpServiceFilter.CredentialsVerifier<UserInfo> extends java.util.function.BiFunction<java.lang.String,java.lang.String,Single<UserInfo>>, AsyncCloseable
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(java.lang.String userId,
java.lang.String password)
Verifies
user-id and password , parsed from the 'Basic' HTTP Authentication Scheme
credentials. |
closeAsync, closeAsyncGracefully
Single<UserInfo> apply(java.lang.String userId, java.lang.String password)
user-id
and password
, parsed from the 'Basic' HTTP Authentication Scheme
credentials.apply
in interface java.util.function.BiFunction<java.lang.String,java.lang.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 denied