public abstract class AbstractBearerTokenExtractor extends Object
JsonWebToken
.Modifier and Type | Field and Description |
---|---|
protected static String |
AUTHORIZATION_HEADER |
protected static String |
BEARER |
protected static String |
BEARER_SCHEME_PREFIX |
protected static String |
COOKIE_HEADER |
Modifier | Constructor and Description |
---|---|
protected |
AbstractBearerTokenExtractor(JWTAuthContextInfo authContextInfo) |
Modifier and Type | Method and Description |
---|---|
String |
getBearerToken()
Find a JWT Bearer token in the request by referencing the configurations
found in the
JWTAuthContextInfo . |
protected abstract String |
getCookieValue(String cookieName)
Retrieve an HTTP request cookie value by name.
|
protected abstract String |
getHeaderValue(String headerName)
Retrieve an HTTP request header by name.
|
protected static final String AUTHORIZATION_HEADER
protected static final String COOKIE_HEADER
protected static final String BEARER
protected static final String BEARER_SCHEME_PREFIX
protected AbstractBearerTokenExtractor(JWTAuthContextInfo authContextInfo)
public String getBearerToken()
JWTAuthContextInfo
. The resulting token may be found
in a cookie or another HTTP header, either explicitly configured or the
default 'Authorization' header.protected abstract String getHeaderValue(String headerName)
headerName
- name of the headerCopyright © 2018–2021. All rights reserved.