Interface OAuth2ClientHttpRequestInterceptor.PrincipalResolver
- All Known Implementing Classes:
RequestAttributePrincipalResolver
,SecurityContextHolderPrincipalResolver
- Enclosing class:
- OAuth2ClientHttpRequestInterceptor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A strategy for resolving a
principal
from an intercepted
request.-
Method Summary
Modifier and TypeMethodDescriptionresolve
(org.springframework.http.HttpRequest request) Resolve theprincipal
from the current request, which is used to obtain anOAuth2AuthorizedClient
.
-
Method Details
-
resolve
Resolve theprincipal
from the current request, which is used to obtain anOAuth2AuthorizedClient
.- Parameters:
request
- the intercepted request, containing HTTP method, URI, headers, and request attributes- Returns:
- the
principal
to be used for resolving anOAuth2AuthorizedClient
.
-