public class BearerAuthenticationTokenResolver extends AbstractHttpAuthenticationTokenResolver
AuthenticationToken.AuthenticationTokenResolver
for HTTP requests providing HttpHeaders.SCHEME_BEARER
authentication scheme using HttpHeaders.AUTHORIZATION
header.Constructor and Description |
---|
BearerAuthenticationTokenResolver()
Constructor
|
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, getScheme
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, create
public BearerAuthenticationTokenResolver()
public Optional<AuthenticationToken> getAuthenticationToken(HttpRequest request) throws AuthenticationException
AuthenticationToken.AuthenticationTokenResolver
request
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.