public abstract class HttpHeaderTokenReader extends Object implements TokenReader
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
HttpHeaderTokenReader() |
Modifier and Type | Method and Description |
---|---|
protected Optional<String> |
extractTokenFromAuthorization(String authorization) |
Optional<String> |
findToken(HttpRequest<?> request)
Search for a JWT token in a HTTP request.
|
protected abstract String |
getHeaderName() |
protected abstract String |
getPrefix() |
protected abstract String getPrefix()
protected abstract String getHeaderName()
public Optional<String> findToken(HttpRequest<?> request)
findToken
in interface TokenReader
request
- The request to look for the token in