Interface AuthenticationConverter

All Known Implementing Classes:
BasicAuthenticationConverter, BearerTokenAuthenticationConverter, ClientSecretBasicAuthenticationConverter, ClientSecretPostAuthenticationConverter, DelegatingAuthenticationConverter, JwtClientAssertionAuthenticationConverter, OAuth2AuthorizationCodeAuthenticationConverter, OAuth2AuthorizationCodeRequestAuthenticationConverter, OAuth2AuthorizationConsentAuthenticationConverter, OAuth2ClientCredentialsAuthenticationConverter, OAuth2DeviceAuthorizationConsentAuthenticationConverter, OAuth2DeviceAuthorizationRequestAuthenticationConverter, OAuth2DeviceCodeAuthenticationConverter, OAuth2DeviceVerificationAuthenticationConverter, OAuth2RefreshTokenAuthenticationConverter, OAuth2TokenExchangeAuthenticationConverter, OAuth2TokenIntrospectionAuthenticationConverter, OAuth2TokenRevocationAuthenticationConverter, OidcClientRegistrationAuthenticationConverter, OidcLogoutAuthenticationConverter, OneTimeTokenAuthenticationConverter, PublicClientAuthenticationConverter, Saml2AuthenticationTokenConverter, X509ClientCertificateAuthenticationConverter

public interface AuthenticationConverter
A strategy used for converting from a HttpServletRequest to an Authentication of particular type. Used to authenticate with appropriate AuthenticationManager. If the result is null, then it signals that no authentication attempt should be made. It is also possible to throw AuthenticationException within the convert(HttpServletRequest) if there was invalid Authentication scheme value.
Since:
5.2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Authentication
    convert(jakarta.servlet.http.HttpServletRequest request)
     
  • Method Details

    • convert

      @Nullable Authentication convert(jakarta.servlet.http.HttpServletRequest request)