Class DelegatingAuthenticationConverter
java.lang.Object
org.springframework.security.oauth2.server.authorization.web.authentication.DelegatingAuthenticationConverter
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationConverter
public final class DelegatingAuthenticationConverter
extends Object
implements org.springframework.security.web.authentication.AuthenticationConverter
An
AuthenticationConverter
that simply delegates to it's
internal List
of AuthenticationConverter
(s).
Each AuthenticationConverter
is given a chance to
AuthenticationConverter.convert(HttpServletRequest)
with the first non-null
Authentication
being returned.
- Since:
- 0.0.2
- See Also:
-
AuthenticationConverter
-
Constructor Summary
ConstructorDescriptionDelegatingAuthenticationConverter
(List<org.springframework.security.web.authentication.AuthenticationConverter> converters) Constructs aDelegatingAuthenticationConverter
using the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authentication
convert
(jakarta.servlet.http.HttpServletRequest request)
-
Constructor Details
-
DelegatingAuthenticationConverter
public DelegatingAuthenticationConverter(List<org.springframework.security.web.authentication.AuthenticationConverter> converters) Constructs aDelegatingAuthenticationConverter
using the provided parameters.- Parameters:
converters
- aList
ofAuthenticationConverter
(s)
-
-
Method Details
-
convert
@Nullable public org.springframework.security.core.Authentication convert(jakarta.servlet.http.HttpServletRequest request) - Specified by:
convert
in interfaceorg.springframework.security.web.authentication.AuthenticationConverter
-