@Singleton public class DefaultTokenResolver extends Object implements TokenResolver
TokenResolver
.Constructor and Description |
---|
DefaultTokenResolver(Collection<TokenReader> tokenReaders)
Instantiates a
DefaultTokenResolver with a list of available TokenReader . |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
resolveToken(HttpRequest<?> request)
Returns the first token found by the supplied token readers.
|
public DefaultTokenResolver(Collection<TokenReader> tokenReaders)
DefaultTokenResolver
with a list of available TokenReader
.tokenReaders
- Collection of available TokenReader
beans.public Optional<String> resolveToken(HttpRequest<?> request)
resolveToken
in interface TokenResolver
request
- The current HTTP request.