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

    Constructors
    Constructor
    Description
    DelegatingAuthenticationConverter(List<org.springframework.security.web.authentication.AuthenticationConverter> converters)
    Constructs a DelegatingAuthenticationConverter using the provided parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.core.Authentication
    convert(jakarta.servlet.http.HttpServletRequest request)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DelegatingAuthenticationConverter

      public DelegatingAuthenticationConverter(List<org.springframework.security.web.authentication.AuthenticationConverter> converters)
      Constructs a DelegatingAuthenticationConverter using the provided parameters.
      Parameters:
      converters - a List of AuthenticationConverter(s)
  • Method Details

    • convert

      @Nullable public org.springframework.security.core.Authentication convert(jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      convert in interface org.springframework.security.web.authentication.AuthenticationConverter