public class BasicAuthenticationTokenResolver extends AbstractHttpAuthenticationTokenResolver
AuthenticationToken.AuthenticationTokenResolver for HTTP requests providing HttpHeaders.SCHEME_BASIC authentication
scheme using HttpHeaders.AUTHORIZATION header.
Authorization header must provide a Base64 encoded String containing username and password separated by a colon.
| Constructor and Description |
|---|
BasicAuthenticationTokenResolver() |
| Modifier and Type | Method and Description |
|---|---|
Optional<AuthenticationToken> |
getAuthenticationToken(HttpRequest request)
Parse given
request message and try to obtain an AuthenticationToken if request is
eligible for this resolver authentication mechanism. |
getMessageType, getSchemeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createpublic Optional<AuthenticationToken> getAuthenticationToken(HttpRequest request) throws AuthenticationException
AuthenticationToken.AuthenticationTokenResolverrequest message and try to obtain an AuthenticationToken if request is
eligible for this resolver authentication mechanism.request - Authentication requestAuthenticationException - Id resolver recognized given request but it is somehow malformed or
incompleteCopyright © 2019 The Holon Platform. All rights reserved.