public abstract class AccessTokenVerifier extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AccessTokenVerifier.TokenState
Represents the state of the token on the request.
|
Modifier and Type | Field and Description |
---|---|
static String |
FORM_BODY |
static String |
HEADER |
protected org.slf4j.Logger |
logger |
static String |
QUERY_PARAM |
static String |
REALM_AGNOSTIC_FORM_BODY
An
AccessTokenVerifier that verifies the OAuth2 access token provided in the request payload without
checking the realm corresponding to the OAuth2Request . |
static String |
REALM_AGNOSTIC_HEADER
An
AccessTokenVerifier that verifies the OAuth2 access token provided in a header without checking the
realm corresponding to the OAuth2Request . |
static String |
REALM_AGNOSTIC_QUERY_PARAM
An
AccessTokenVerifier that verifies the OAuth2 access token provided in the query parameter without
checking the realm corresponding to the OAuth2Request . |
Modifier | Constructor and Description |
---|---|
protected |
AccessTokenVerifier(TokenStore tokenStore) |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
obtainTokenId(OAuth2Request request)
Obtain the token ID from the request.
|
AccessTokenVerifier.TokenState |
verify(OAuth2Request request)
Verifies that the specified OAuth2 request contains a valid access token which has not expired.
|
public static final String HEADER
public static final String REALM_AGNOSTIC_HEADER
AccessTokenVerifier
that verifies the OAuth2 access token provided in a header without checking the
realm corresponding to the OAuth2Request
.public static final String FORM_BODY
public static final String REALM_AGNOSTIC_FORM_BODY
AccessTokenVerifier
that verifies the OAuth2 access token provided in the request payload without
checking the realm corresponding to the OAuth2Request
.public static final String QUERY_PARAM
public static final String REALM_AGNOSTIC_QUERY_PARAM
AccessTokenVerifier
that verifies the OAuth2 access token provided in the query parameter without
checking the realm corresponding to the OAuth2Request
.protected final org.slf4j.Logger logger
protected AccessTokenVerifier(TokenStore tokenStore)
public AccessTokenVerifier.TokenState verify(OAuth2Request request)
request
- The OAuth2 request. Must not be null
.true
if the request contains an access token which is valid and has not expired.protected abstract String obtainTokenId(OAuth2Request request)
request
- The OAuth2 request. Must not be null
.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.