インターフェース AuthenticationConverter

すべての既知の実装クラス:
BasicAuthenticationConverter、BearerTokenAuthenticationConverter、ClientSecretBasicAuthenticationConverter、ClientSecretPostAuthenticationConverter、DelegatingAuthenticationConverter、JwtClientAssertionAuthenticationConverter、OAuth2AuthorizationCodeAuthenticationConverter、OAuth2AuthorizationCodeRequestAuthenticationConverter、OAuth2AuthorizationConsentAuthenticationConverter、OAuth2ClientCredentialsAuthenticationConverter、OAuth2ClientRegistrationAuthenticationConverter、OAuth2DeviceAuthorizationConsentAuthenticationConverter、OAuth2DeviceAuthorizationRequestAuthenticationConverter、OAuth2DeviceCodeAuthenticationConverter、OAuth2DeviceVerificationAuthenticationConverter、OAuth2RefreshTokenAuthenticationConverter、OAuth2TokenExchangeAuthenticationConverter、OAuth2TokenIntrospectionAuthenticationConverter、OAuth2TokenRevocationAuthenticationConverter、OidcClientRegistrationAuthenticationConverter、OidcLogoutAuthenticationConverter、OneTimeTokenAuthenticationConverter、PublicClientAuthenticationConverter、Saml2AuthenticationTokenConverter、X509ClientCertificateAuthenticationConverter

public interface AuthenticationConverter
HttpServletRequest から特定の型の Authentication に変換するために使用される戦略。適切な AuthenticationManager での認証に使用されます。結果が null の場合、認証を試みてはならないことを示します。無効な認証スキームの値があった場合、convert(HttpServletRequest) 内で AuthenticationException をスローすることも可能です。
導入:
5.2.0
  • 方法の概要

    修飾子と型
    メソッド
    説明
    @Nullable Authentication
    convert(jakarta.servlet.http.HttpServletRequest request)
  • 方法の詳細

    • convert

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