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
ConstructorsConstructorDescriptionDelegatingAuthenticationConverter(List<org.springframework.security.web.authentication.AuthenticationConverter> converters) Constructs aDelegatingAuthenticationConverterusing the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authenticationconvert(jakarta.servlet.http.HttpServletRequest request)
-
Constructor Details
-
DelegatingAuthenticationConverter
public DelegatingAuthenticationConverter(List<org.springframework.security.web.authentication.AuthenticationConverter> converters) Constructs aDelegatingAuthenticationConverterusing the provided parameters.- Parameters:
converters- aListofAuthenticationConverter(s)
-
-
Method Details
-
convert
@Nullable public org.springframework.security.core.Authentication convert(jakarta.servlet.http.HttpServletRequest request) - Specified by:
convertin interfaceorg.springframework.security.web.authentication.AuthenticationConverter
-